Questions tagged [document-database]

A document database stores, retrieves, and manages document-oriented information, also known as semi-structured data. Document databases often store data in a denormalized fashion as opposed to normalized data, which would appear in a relational database.

An excerpt from Wikipedia:

The central concept of a document-oriented database is the notion of a document. While each document-oriented database implementation differs on the details of this definition, in general, they all assume documents encapsulate and encode data (or information) in some standard formats or encodings. Encodings in use include XML, YAML, JSON, and BSON, as well as binary forms like PDF and Microsoft Office documents (MS Word, Excel, and so on).

Examples of document databases:

232 questions
1
vote
1 answer

RavenDB Query Aggregate Properties in Map/Reduce Index

I have a map/reduce index that looks like this (as defined on the server). Map: from request in docs.Master_Requests select new { DocumentID = Guid.NewGuid(), Year = request.Timestamp.Year, Month =…
Dylan Vester
  • 2,686
  • 4
  • 29
  • 40
1
vote
2 answers

How to set a field containing unique key

I want to save data in CouchDB documents and as I am used to doing it in RDBMS. I want to create a field which can only contain a unique value in the database. If I now save a document and there is already a document with unique key I expect an…
Madeline
  • 1,039
  • 2
  • 11
  • 19
1
vote
2 answers

Incorrect items count with specific index usage

I'm using MongoDB, version 2.4.8 on windows server 2008 R2 and I have strange index behaviour which I can't explain. Here example of structure that I have in my collection: { "_id" : NUUID("67070100-4627-4aa5-8ab9-45624e5b82ad"), …
Danyl
  • 93
  • 7
1
vote
1 answer

Retrieving, operating and storing date back in datetime

Note : I have provided only a few documents in the output to keep the post small but intuitive The source collection : { "_id" : { "SpId" : 840, "Scheduler_Id" : 1, "Channel_Id" : 2, …
1
vote
2 answers

MongoDB Document DB Design Decision

Getting started with document DBs, I have a question about a design decision. I'll be inserting data that contains financial transactions for many days. Not sure if I should make each transaction a doc, or make one doc for all of the data, which…
bmw0128
  • 13,470
  • 24
  • 68
  • 116
1
vote
1 answer

Handling Incredibly large JSON Document in CouchDB

I'm new to NoSql databases and I'm having a hard time figuring how to handle a very large JSON Document that could amount to over 20MB on my local drive. This structure will definitely increase over time and I worry about the speed of queries and…
shanks
  • 912
  • 10
  • 23
1
vote
1 answer

Can MongoDB MapReduce functions behave like CouchDB views?

The nice thing about CouchDB is that the view results are updated incrementally as the database changes. Is there a way to accomplish the same thing with MongoDB? I've been unable to locate any specifics in the documentation. Thanks
Alex R
  • 11,364
  • 15
  • 100
  • 180
1
vote
1 answer

Custom key generation in RavenDB

I have sets of entities all of them are derived from abstract class public abstract class NamedEntity : INamedEntity { #region Public Properties public string Description { get; set; } public string Id { get; set; } public string…
Jevgenij Nekrasov
  • 2,690
  • 3
  • 30
  • 51
1
vote
1 answer

Rails Mongoid model/view calculation

I need to do some calculation through a view on a few models. Example: class Teacher include Mongoid::Document has_many :students end class Student include Mongoid::Document belogns_to :teacher field gold_stars, type: Integer field…
GTDev
  • 5,488
  • 9
  • 49
  • 84
1
vote
1 answer

StackOverflow exception with SisoDB while storing a FileInfo entity

This questions refers to the SisoDB - an SQL-Server-based document database written in C#. I am trying to store a FileInfo entity to the database. In order to avoid (potential) circular references I define the interface for the fields I…
Alexander Galkin
  • 12,086
  • 12
  • 63
  • 115
1
vote
1 answer

RavenDB Index, group objects

I'm trying learn more about RavenDB and at the moment to focus on how to write good Indexes for RavenDB. Let's say I have a object, Session, with an organization as a property and I want to group all sessions by the organization. And also I wan't…
Nordis
  • 733
  • 2
  • 9
  • 31
1
vote
0 answers

Free Embedded Only Document Database For Commercial Use

I'm looking at document databases for my ASP.NET MVC application, and I need something that I can embed into my application, but is also free. I have a public web site that I'm not making money off yet, but may in the future. That said, I noticed…
Brian Mains
  • 50,520
  • 35
  • 148
  • 257
1
vote
1 answer

How can I authenticate a user in RavenDB

What is authentication mechanism for ravendb in server mode. The Authentication bundle contains AuthenticationUser class to create users and AuthenticateClient class to validate users. The AuthenticateClient class has a function public bool…
Rajdeep Paliwal
  • 175
  • 2
  • 14
0
votes
2 answers

Modeling data in App Engine. Child entities vs. Document-style

Trying to model some highly connected, but also hierarchical data in app engine. Here is an example: Person: Phone Numbers: Number: 555-555-5555, Ext: 123, Notes: Work Number: 444-444-4444, Ext: 456, Notes: Mobile One entity,…
0
votes
1 answer

In a Big Table, is it normal to key values in child (sub) collections?

I'm using Google App Engine and thus Big Table. I have a person entity that looks like this: { // This property would be encoded into JSON and saved un-indexed as db.Text() phone_numbers: { 'hHklams8akjJkaJSL': // <-- Should I…
Chris Dutrow
  • 48,402
  • 65
  • 188
  • 258