All Questions
5 questions
1
vote
1
answer
109
views
Cleaning Kotlin method which returns the document name after the id
I'm just getting to know the possibilities of Kotlin and mongoDB.
I am writing a method that returns the name of the street after the ID.
Everything works, but I find it quite sloppy.
Empty String ...
1
vote
1
answer
65
views
Creating Mongoose model
I'm creating a Mongoose model for a web service. I have a secondary index on facultyId because majority of the reads would want to search by ...
1
vote
2
answers
2k
views
Finding mongodb records in batches using mongoid [closed]
I want to get records in batches. But mongoid doc says to avoid using skip due as it can be expensive. I wrote this method to iterate through a large number records efficiently.
...
15
votes
2
answers
851
views
Builder pattern for users in document database
I'm attempting to make a builder pattern that makes sense and is practical for storing user data in a flexible way in a document database. The DB I chose is MongoDB, and I'm using its Java API ...
1
vote
1
answer
138
views
Basic commenting structure for commenting on objects [closed]
I would dearly love some feedback on the model below. It's a basic commenting structure where users can comment on a variety of objects in the model. I have denormalised it to make querying simpler, ...