Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
31 views

My question is about indexing and cardinality in Firestore. I have 3 fields: owner_id: Thousands of users domain: Hundreds of domains category: Only 10 unique one The composite index, which matches ...
Khaled Sh's user avatar
0 votes
1 answer
63 views

I'm trying out Firestore with this data model: a collection of pokemon, where a pokemon is { name: string, move?: Ref<move> } collection of moves, where a move is { name: string } I have data ...
maja's user avatar
  • 830
2 votes
1 answer
4k views

I'm working with a system that requires multiple databases for multiple organisation. A monolithic node Js server connects to these databases. The challenge is I may have 5000 organisation. I wanted ...
Md.Reyad Hossain's user avatar
0 votes
1 answer
106 views

I have a users collection and an invitations collection. Users can invite multiple users. Records in the invitations collection document these invites. Each record in invitations is shaped like this: &...
shennan's user avatar
  • 11.8k
0 votes
0 answers
26 views

I am learning Firebase after many years of using SQL RDBMSs. This is definitely a challenge. Say, I have a collection of objects. Each object can belong to any number of categories. Categories have ...
Eugene's user avatar
  • 9,554
1 vote
1 answer
837 views

I have a DocumentDB cluster with exactly one replica instance ( db.r5.16xlarge ) and a primary instance ( db.r5.24xlarge ). If something happens to the primary instance and a failover occurs, the ...
Mirna Daniel's user avatar
0 votes
1 answer
327 views

I have the following structure for one of my collections on Firestore: main_database/root/comments/{commentId}/message: str main_database/root/comments/{commentId}/replies/{replyId}/message: str I ...
WJA's user avatar
  • 7,054
-2 votes
2 answers
253 views

Let's say I have a canvas where there are various objects I can add in, such as a/an: Drawing Image Chart Note Table For each object I need to store the dimensions and the layer order, for example ...
David542's user avatar
  • 112k
0 votes
2 answers
137 views

I need to remove a child object in FQL. Let me demonstrate with the following example: { "1": { "name": "test" }, "2": { "name&...
FilipToth's user avatar
  • 167
0 votes
1 answer
332 views

I have following data in OrientDB 3.0.27 where some of the values are in JSON Array and some are string { "@type": "d", "@rid": "#57:0", "@...
Sunil Kumar's user avatar
0 votes
1 answer
2k views

I'm working on reducing the size of my database records. Each record is on average around 5Kb of which 97% is used by an single array property. This array describe object on an image and their ...
Théo Champion's user avatar
1 vote
0 answers
113 views

Right now I have a lookup stage that matches a collection of answers with their respective questions. The problem I'm having is that on the $match if the question does not having a matching answer ...
Alexander Shold's user avatar
1 vote
1 answer
394 views

I'm don't understand how to unwind and then nested collections in mongoDB. basically I have two collections that are structured like this: questions doc: { "_id" : 1, "questions&...
Alexander Shold's user avatar
0 votes
1 answer
474 views

I have not used tinydb before. I am trying to insert some data to tinydb database using the android app. I have checked many videos and blogs but still confused about how to use it. How can I create a ...
Aysha Hamna's user avatar
0 votes
1 answer
444 views

I'm struggling with this nested document too much. I tried to read the document and also follow other SO responses to see if it works for me, but I'm not getting the results that I'm looking for. I ...
Kuni's user avatar
  • 865
5 votes
2 answers
959 views

Suppose I'm using the cursor to iterate a subset of the documents, ordered by some field let's say. What happens if while iterating, a new document is being inserted or a current one is being deleted? ...
IsaacLevon's user avatar
  • 2,630
0 votes
1 answer
249 views

I would like to save a single document field into a local variable, but I am not able to do that. Here is my code: void getPostsData() async{ List<Widget> listItems = []; String _title; ...
randomUser786's user avatar
-1 votes
1 answer
816 views

What are the best practices to keep the data QA/UAT to best represent all scenarios PROD environment? The intention is to have the lower environment as close as PROD environment so that we can ...
Kritul Rathod's user avatar
0 votes
3 answers
3k views

I am currently working on an ASP.Net application that stores student information. I am required to store the following information: Student number Name Email address Home address Contact no. Upload ...
Thashvir Rajcoomar's user avatar
0 votes
3 answers
5k views

MS Azure documentation does not talk anything about it. Formal bulk executor documentations talks only about insert and update options, not delete. There is a suggested java script server side program ...
Harsh Kishore's user avatar
3 votes
1 answer
218 views

When I think of a document database, I think of a bunch of JSON files. (I imagine it is more complex than that, but that is how envision it.) In an upcoming project, we need the ability to deal with ...
Vaccano's user avatar
  • 83.3k
0 votes
1 answer
206 views

I am very confused between schema, model, instance of a model, and collection in Mongoose. My understanding is as follows: Mongoose.schema( { } ) - analogous to defining the columns of a table in ...
lynxx's user avatar
  • 614
2 votes
1 answer
134 views

I have decided to use CosmosDB in order to store my users permissions data. Our permissions are very dynamic in nature and thus a non relational database makes sense. For a permission database, it ...
Josh L's user avatar
  • 1,522
2 votes
2 answers
350 views

In my Firebase project I need to query all users who are available on a certain date at a certain city and sort by some other criteria. Since we can't use multiple "array-contains" operations in one ...
Wadim Halik's user avatar
1 vote
0 answers
58 views

I am encountering an issue I am trying to wrap my head around. I am using learnmongodbthehardway as a resource to define my options modelling a M:N relationship. According to this link I have two ...
SecretIndividual's user avatar
2 votes
0 answers
307 views

I'm trying to implement a 2-phase commit over a document database which supports only single-phase commit using transaction info on the inserted data. I understand the theory behind 2-phase commit, ...
Metheny's user avatar
  • 1,222
0 votes
0 answers
60 views

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 ...
Shailesh's user avatar
  • 403
1 vote
1 answer
430 views

I am trying to delete multiple documents of a particular collection meeting certain criteria. Ideally after deleting these documents I need to add new documents. Even though the new documents are ...
prasadv's user avatar
  • 73
0 votes
1 answer
147 views

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 ...
Peter Agoston's user avatar
0 votes
1 answer
64 views

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 ...
Damon Yuan's user avatar
  • 3,833
0 votes
1 answer
273 views

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 ...
aeon's user avatar
  • 3
0 votes
1 answer
903 views

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 ...
Esben von Buchwald's user avatar
3 votes
2 answers
682 views

I am trying to create a new collection in ravendb using the apollo node client. Although the document is created and stored in ravendb, the "collection" value from metadata is missing. And as a result ...
prasadv's user avatar
  • 73
2 votes
2 answers
4k views

I'm trying to partition a collection based on a nested Java object and the corresponding Json. I know it might seem unreasonable to do this, but I am working on a project far into development, and the ...
Christian Meyer's user avatar
2 votes
1 answer
39 views

I have following entity "MyEntity" in my RavenDb { Id: {Guid} //... //... } In the application there might occur a specific event relating to elements of MyEntity. Not I want to associate users ...
yBother's user avatar
  • 758
-1 votes
1 answer
266 views

I know this is a topic that's been addressed ad nauseam but I also know there are people who enjoy opining about databases so I figured I'd just go ahead and ask the question again. I'm building out ...
christok's user avatar
  • 1,117
2 votes
1 answer
69 views

I'm doing some research for my team, trying to understand couchbase. Right now, I'm looking at modeling practices in couchbase. I found this article, written in August 2016, that talks about ...
Micah Pearce's user avatar
  • 1,975
1 vote
3 answers
1k views

I cannot read single document by id from DocumentDB. I am building application and I have exact problem like this one. I don't understand what am I missing. Let's say I have Users collection and I ...
zuboje's user avatar
  • 757
0 votes
1 answer
2k views

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 ...
Steffso's user avatar
  • 11
0 votes
1 answer
195 views

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 ...
Nithin's user avatar
  • 45
0 votes
0 answers
73 views

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 ...
INNVTV's user avatar
  • 3,439
0 votes
0 answers
206 views

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?
Build No Error's user avatar
0 votes
1 answer
2k views

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": [], ...
ruffin's user avatar
  • 17.8k
0 votes
2 answers
258 views

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 ...
See Sharp's user avatar
  • 379
0 votes
1 answer
2k views

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 ...
Naveen Prasath's user avatar
4 votes
1 answer
3k views

I'd like to move a document to another partition by changing the partition key. I have read somewhere that the document would have to be deleted first and a new one with the new partition key would ...
user246392's user avatar
  • 3,147
2 votes
1 answer
6k views

We are building a app where we need to show nearby posts, made by users. A post should only be shown, if it is not more as 4 hours since posting. Because firestore doesn't provide geoquerys, i have to ...
Niklas Raab's user avatar
  • 1,736
-2 votes
1 answer
66 views

Here's the issue I'm having in moving from SQL to a document db with a 2MB limit on documents. Suppose I have an entities that looks like this unit id item[] item id name If item[] can ...
See Sharp's user avatar
  • 379
2 votes
1 answer
925 views

Azure Cosmos Document DB throws an error on executing a query like this - SELECT DISTINCT VALUE { DocumentName: c.Name, Count: COUNT(c.id), Target: c.Target } FROM c where c.Target != ...
Nikhil Girraj's user avatar
0 votes
2 answers
5k views

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 ...
thiagoteixeira's user avatar

1
2 3 4 5