document-database

Is MongoDB thread-safe?

情到浓时终转凉″ 提交于 2019-12-08 17:23:29
问题 I'm running MongoDB on Windows. I have 1 or more threads that drop and recreate a collection. Using mongo.exe with the show collections() command, I'm seeing multiple collections with the same name (well over 1,000 collections with the same name!). When I run validate: > db.MY_COLLECTION.validate() I get: { "errmsg" : "ns not found", "ok" : 0, "valid" : false } The size() command returns 0, and find() returns nothing. My question is: Is MongoDB thread safe? A follow on question would be

Orientdb as a document-graph database

你。 提交于 2019-12-08 00:27:23
问题 I am using Neo4j and trying to find out the advantages of Orient as document-graph db over Neo4j. How does it work in Orientdb to have features of a document database in a graphbdb? is the database in both mode (graph and document) using the same datasource? if so, then is it possible to edit data in documentdb and show it as a graphdb? I worked with Orientdb and it seems that you can have your database either as graphdb or as documentdb, so I don't get the point of having both databases

Orientdb as a document-graph database

会有一股神秘感。 提交于 2019-12-06 10:30:49
I am using Neo4j and trying to find out the advantages of Orient as document-graph db over Neo4j. How does it work in Orientdb to have features of a document database in a graphbdb? is the database in both mode (graph and document) using the same datasource? if so, then is it possible to edit data in documentdb and show it as a graphdb? I worked with Orientdb and it seems that you can have your database either as graphdb or as documentdb, so I don't get the point of having both databases features in one db. I mean you can choose to have a pure documentdb or pure graphdb, but can't be some

RavenDB. How to load document with only 5 items from inner collection?

本秂侑毒 提交于 2019-12-06 03:44:15
问题 Here is a document in the store: { "Name": "Hibernating Rhinos", "Employees": [ { "Name": "Ayende" }, { "Name": "John" }, { "Name": "Bob" }, { "Name": "Tom" }, { "Name": "Lane" }, { "Name": "Bill" }, { "Name": "Tad" } ] } It is easy to load this document with or without Employees collection, but how to load only part of inner collection? For instance, first 5 items: { "Name": "Hibernating Rhinos", "Employees": [ { "Name": "Ayende" }, { "Name": "John" }, { "Name": "Bob" }, { "Name": "Tom" }, {

Using both graph db and document db

半城伤御伤魂 提交于 2019-12-06 03:31:08
问题 I'm considering a setup where I have entities stored both in a document db (e.g. CouchDB) and a graph db (e.g. Neo4j). The rationale is storing each entity information (data, blobs, values, complex internal structure) in the document db while storing the entity relations (parents, children, associated entities) in the graph db. Has anyone done / seen / been bitten by a setup like this? What kind of issues should I expect? First thing that come to mindaka the 2-phase commit. But backups are

Should I denormalize or run multiple queries in DocumentDb?

﹥>﹥吖頭↗ 提交于 2019-12-05 20:20:11
问题 I'm learning about data modeling in DocumentDb. Here's where I need some advice Please see what my documents look like down below. I can take two approaches here both with pros and cons. Scenario 1: If I keep the data denormalized (see my documents below) by keeping project team member information i.e. first, last name, email, etc. in the same document as the project, I can get the information I need in one query BUT when Jane Doe gets married and her last name changes, I'd have to update a

RavenDB Session > 30

不想你离开。 提交于 2019-12-05 11:12:33
问题 If I'm trying to save a list of items I want to save that has a count > 30 I get an error saying The maximum number of requests (30) allowed for this session has been reached. Raven limits the number of remote calls that a session is allowed to make as an early warning system. Sessions are expected to be short lived, and Raven provides facilities like Load(string[] keys) to load multiple documents at once and batch saves. What can I do to get around this? The problem with this error is I'm

When developing web applications when would you use a Graph database versus a Document database?

会有一股神秘感。 提交于 2019-12-04 23:06:06
问题 I am developing a web-based application using Rails. I am debating between using a Graph Database, such as InfoGrid, or a Document Database, such as MongoDB. My application will need to store both small sets of data, such as a URL, and very large sets of data, such as Virtual Machines. This data will be tied to a single user. I am interested in learning about peoples experiences with either Graph or Document databases and why they would use either of the options. Thank you 回答1: I don't feel

MongoDB document design for comments (and their reply comments)

≯℡__Kan透↙ 提交于 2019-12-04 16:47:06
I have a model that looks like: class Comment { public string ID { get; set; } public string ArticleType { get; set; } public string ArticleID { get; set; } public string Body { get; set; } public DateTime DateCreated { get; set; } public string UserID { get; set; } } I am creating an app to store comments about other stuff in our application For example, if the comment was regarding a product, the ArticleType could be “product” and the ArticleID would be the product id... I am going to use mongodb to store this data I want to be able to reply to a comment, and store the response

Using both graph db and document db

限于喜欢 提交于 2019-12-04 09:33:29
I'm considering a setup where I have entities stored both in a document db (e.g. CouchDB) and a graph db (e.g. Neo4j). The rationale is storing each entity information (data, blobs, values, complex internal structure) in the document db while storing the entity relations (parents, children, associated entities) in the graph db. Has anyone done / seen / been bitten by a setup like this? What kind of issues should I expect? First thing that come to mindaka the 2-phase commit. But backups are problematic too here. You may check out the book " Seven DBs in Seven Weeks ". 8th chapter talks about