I. MongoDB Introduction
MongoDB is a high-performance, open-source, and open-mode document-based database. It is currently the most popular nosql database product, it can be used in many scenarios to replace traditional relational databases or
Collections collection: insert (Array $ [, Array $ Options = Array ()])
Use of the second parameter of this method
'Safe ': Specifies a Boolean OR integer. The default value is false. If it is falseProgramWill continue, without waiting for the
First, when you start Mongo, you need to add a very heavy parameter. -- Auth with this parameter will enable severe permissions. Therefore, the owner is not responsible for permission verification by default.
#./Mongod -- dbpath/data/mongo_data/--
Using system; using system. collections. generic; using system. LINQ; using MongoDB; // /// the packaging class for Mongo and mongodatabase /// public class mymongodb: idisposable {private Mongo _ Mongo; private imongodatabase _ dB; Private Static
Requirements:
When parsing the field value in MongoDB, it is found that the value is a JSON string and needs to be deserialized.Solution:
First, I thought about finding the corresponding CIDR library at http://www.json.org/json-zh.html. I tried
MorphiaIs a lightweight type-safe Library for mapping Java objects to/from
MongoDB:
Morphia is a secure and lightweight Java persistence architecture designed for MongoDB.
1. To use morphia, You need to rely on the following jars:
MongoDB Java
Export data using export Export
Suppose there is a user table in the database with two records in it. We want to export it.> Use my_mongodbSwitched to DB my_mongodb> DB. User. Find ();{"_ Id": objectid ("4f81a4a1779282ca68fd8a5a"), "uid": 2,
Document directory
First, the driver
Use MongoDB in Asp.net
Add data
Delete data
Modify data
Get Data
First, the driver
If Asp.net wants to use MongoDB,. Net does not have its own link class. Use a third-party or official link class.
Of
In MongoDB, Service Startup does not have permission verification by default. In terms of security, this is definitely not feasible. Therefore, you need to add permission verification.
To verify permissions, you must have a user. Therefore, the
In the previous chapter, I posted MongoDB permission verification. I will briefly introduce some problems that may occur during the creation of verification.
1. run f: \ MongoDB \ bin> mongod -- dbpath F: \ MongoDB \ data -- logpath F: \ MongoDB \
Official reference: http://www.mkyong.com/mongodb/Use myeclipse to add a Maven-Project project. Before that, you may need to configure your m2eclipse1. Configure Maven to your own installed version.
2. Set user settingsOf course, you can also
Reprinted: http://leongfans.iteye.com/blog/1019383
I searched MongoDB information yesterday and introduced a lot of applications, but not many principles.After a rough look, the two design ideas are similar in general. They mainly distribute data
The stringbuilder class in MongoDB code.
// stringdata.h/* Copyright 2010 10gen Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may
During the past two days, we found that the time of the MongoDB to be stored had changed. The difference was 8 hours. I tried to find out that it was due to time difference.
Relatively speaking, it is easy to solve.
When output:
Time.
Check the MongoDB. log and find the following statements in the log:..............Mon Mar 317: 46: 37 [conn148] assertion: 10295: GetFile (): Bad file number value (upt DB ?) : Run repair..............Declaration: GetFile (): incorrect file value
Recently, we have been thinking about the architecture. One problem is that we are still plagued by these business systems, that is, logs and log statistics. The general problem is as follows:
We have many modules. Although the log format is
This article is summarized by the program yuan mm in our group
----------------------------------- I am a split line ------------------------------------------
Exact match
For a single key-Value Pair: {"Age": 28}, all documents whose "Age" value
Http://eshilin.blog.163.com/blog/static/13288033020106215227346/
Shard configuration for MongoDB distributed deployment
17:22:07 | category: MongoDB | font size subscriptionThis section describes the shard configuration of MongoDB. If you want to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.