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

Document-databse implementaion of one-to-many relationship

Designing data intensive application by Martin Kleppmann says one-to-many relationship is implemented in document database using tree hierarchy. For example as given in code below user can hold multiple positions and that can be represented as list…
Shailesh
  • 405
  • 1
  • 5
  • 18
0
votes
1 answer

How to store locations in ArangoDB?

I am building a web application where I need to store a large number of unique addresses as nodes in ArangoDB. One approach would be using a hierarchical graph model: a country node connected to county nodes, county nodes connected to cities and…
0
votes
1 answer

How is Result-Set Query Scale done in Google Cloud Datastore

It is mentioned that making queries in Google Cloud Datastore is as expensive, with regards to time, as the number of results, which means that, for example, the time it takes to run any query would be proportional only to the number of matching…
Damon Yuan
  • 3,683
  • 4
  • 23
  • 31
0
votes
1 answer

Query to get specific sub-doc using aggregation in mongoDB?

I'd like to know a query in which I could get a specific sub-doc using it's ObjectId- or even it's "store" name if it's easier- using the aggregation method. I'm pretty sure I can use $project but I'm not sure how to apply that to an ObjectId. I…
aeon
  • 3
  • 1
0
votes
1 answer

Firestore - trigger when a document is requested but not found, or when an expired document is read?

I have an app where all data shown to the user is received from firestore documents. These documents consists of either user generated content or data that's been imported from 3rd party APIs. The imported documents contains an expiration timestamp.…
0
votes
2 answers

Handling shared objects in Nosql (documentstore)

Theres one thing that I haven't understood with document databases and that's how to handle shared objects. Take this these two different objects/documents: Email BelongsTo (User object) Comment WrittenBy (User object) The user is the same…
jgauffin
  • 99,844
  • 45
  • 235
  • 372
0
votes
1 answer

Store "extended" metadata on entities stored in Azure Cosmos DB as JSON documents

We are building a REST API in .NET deployed to Azure App Service / Azure API App. From this API, client can create "Products" and query "Products". The product entity has a set of fields that are common, and that all clients have to provide when…
Steffso
  • 11
  • 3
0
votes
1 answer

Azure Document DB : Creation of a collection is throwing "DocumentClientException" with error message "Session token specified is invalid"

I am getting the below exception "Microsoft.Azure.Documents.DocumentClientException: Message: {"Errors":["Session token specified is invalid."]}"in the workflow which creates a collection with the given name if and only if there exists no collection…
Nithin
  • 45
  • 7
0
votes
0 answers

Generalized DocumentDB / CosmosDB Partitioning Strategy

From all the research I've done it seems that even when using a partition key in CosmosDB/DocumentDB you may run into an issue with capacity if that partition hits the 10gb limit. I've seen strategies where you can append a date for logging purposes…
INNVTV
  • 3,155
  • 7
  • 37
  • 71
0
votes
0 answers

How to Query Cosmos DB using Document DB client

For some reason, I can only use Document DB Client to query my Cosmos Database, so should I use ReadDatabaseAsync or ReadDocumentAsync? Or something? For the URI ID, where could I find it?
0
votes
1 answer

Querying nested subtrees in Cosmos DB

Let's say I have a parent-child-grandchild-etc relationship in a Cosmos document, represented by the following JSON: "id": "someUniqueString", "peepsNkids": [ "Jane": [ "Joe": [], "Jocelyn": [ "Jerry": [], …
ruffin
  • 16,507
  • 9
  • 88
  • 138
0
votes
2 answers

Is it possible in Cosmos DB to create a singly linked list of documents?

One problem I commonly solve is that of keeping immutable versions of a document rather than editing the document. When asked for the document, retrieve the most recent version. One way to do this is with timestamps: doc 0: { id:…
See Sharp
  • 379
  • 1
  • 4
  • 11
0
votes
1 answer

Multiple partitions in COSMOS DB collection

1) I have a Cosmos DB collection with about 500k documents and which is Partitioned by a property "SITEID". In the Query Request Options only one partition key value can be passed. In my case I have queries where the SITEID in (1,2,3,4) needs to be…
0
votes
2 answers

Schema migration for Cosmos DB SQL API. Makes sense?

I started working on a Java project where the chosen database was the Azure Cosmos DB SQL API, so reading the SQL API Cosmos DB introduction I understood that that SQL, in this case, is only for query and not for data manipulation(insert, delete).…
0
votes
1 answer

Querying Cosmos DB by type property

In my project i want to add inheritance for some classes and save the generated objects to a documentcollection in the Cosmos DB database. To save the information about the type i use this preference in JSON.net:…
Niklas Raab
  • 1,576
  • 1
  • 16
  • 32