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
0 answers

RavenDB - Replication, WaitAsync and different E-TAG

I am trying to implement proper Load Balancing of RavenDB. I am using 2 ravendbservers. I am using RavenDB version 3.0. Here is my code (it looks as it looks because I need to have that operation synchronous): …
madoxdev
  • 3,770
  • 1
  • 24
  • 39
1
vote
2 answers

Model one to many in RavenDb for better performance

I'm approaching to document database and I'm little bit confused how to map documents relationship, in a situation as follow public class Person { public Person() { } public int Id { get; set; } public string Name { get;set;} …
1
vote
2 answers

Single Node CouchDB, Multi Doc Transaction

Assuming there is a validate_doc_update function, in the design document, defined as: { "_id": "_design/ddoc", "_rev": "12-133b5dad579f872884a9ccd6d4be5ee9", "language": "javascript", "validate_doc_update": "function(newDoc, oldDoc,…
Kaveh Shahbazian
  • 13,088
  • 13
  • 80
  • 139
1
vote
1 answer

Querying multiple parameters using Linq with Marten in Visual Studio

I am learning Document Databases, and we are using Marten/Linq in Visual Studio. The database is running through Postgres/PGAdmin. My database is football(not American) leagues, teams, players and managers. I am trying to construct queries based on…
1
vote
0 answers

How to access linked documents using Dql?

I need to check a field in a document and a field in other document that is being referred by the first one. Can I do it with DQL? Here is my code and my wish between quotes. public function findByCode($code, $email) { return…
Matheus Oliveira
  • 587
  • 3
  • 10
  • 33
1
vote
2 answers

How to index related documents in reverse direction in Ravendb

In Example II of Indexing Related Documents, an index is built over Authors by Name and Book title. The relevant entities look like so: public class Book { public string Id { get; set; } public string Name { get; set; } } public class Author…
AdamAL
  • 1,571
  • 2
  • 14
  • 25
1
vote
2 answers

DocumentDB - Storing telemetry data

so a quick update on why I created this question. We currently are storing our telemetry data of our devices in the field within Azure SQL Server. This is working great (have a ton of experience with EF, LINQ and relationship dbs) BUT I am aware…
David
  • 693
  • 7
  • 20
1
vote
1 answer

Using MongoDB for time-versioned documents

I have a requirement to store different objects relating to an entity and it's current state and attributes. The objects will not be homogenous so a relationship database doesn't make sense as the structures will all be so different. I will also…
NZJames
  • 4,963
  • 15
  • 50
  • 100
1
vote
2 answers

What sort of Database system should I use?

I'm planning to write an address book that stored contact information. Each contact could have an unlimited number of fields. Mostly strings and integers. But perhaps references to other Objects. What are the advantages and disadvantages of using an…
1
vote
1 answer

Saving Full Document or Just the modifications in document database

Assume you have the default settings of a router, and for a certain router you want to customize some of the settings. Which is a better way? Save the default settings in a document inside the database and save the modification in another document…
Nassim BG
  • 23
  • 6
1
vote
1 answer

Best practices for configuring a Solr schema

I'm currently configuring my schema.xml file and trying to figure out what's the best way to set up my documents. I use a RMDBS and thus many objects are relational. Take this site for instance; a document typically consists of a question, followed…
Peter Kruithof
  • 10,584
  • 6
  • 29
  • 42
1
vote
1 answer

Scan DynamoDB JSON document using Java and DynamoDBMapper

I'm using DynamoDB and also storing documents by passing JSON to it, all using the DynamoDBMapper class, in Java. It's straightforward enough to put data in to the table. And also to query the table if you have the Hash or Range values…
eebsie
  • 396
  • 5
  • 18
1
vote
1 answer

How to register for callbacks on a DB4O server?

I have a DB4O server listening on a port IObjectServer server = Db4oClientServer.OpenServer("filename.db40", 11978); How do i register for callbacks? For example how do i execute some custom code before an object is read or stored?
Simon
  • 33,714
  • 21
  • 133
  • 202
1
vote
1 answer

Map/reduce on multiple values from single type of document

To set the scene. I currently have three types of documents. (Stripped out properties not needed for the example). User { Id } Location { Id } Excursion { UserId, LocationId } What I'm trying to achieve is to M/R some statistics about the location…
Dashu
  • 337
  • 2
  • 15
1
vote
3 answers

OrientDB - How do I insert a document with connections to multiple other documents?

Using OrientDB 1.7-rc and Scala, I would like to insert a document (ODocument), into a document (not graph) database, with connections to other documents. How should I do this? I've tried the following, but it seems to insert an embedded list of…
aknuds1
  • 65,625
  • 67
  • 195
  • 317