To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/c8cb9c04-4536-4f17-8196-7bc0a9da0057%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/d1bdb158-965a-498f-b261-428401edf5bf%40googlegroups.com.
We have exactly this structure on our mongo based 3d printing news site microfabricator.com
There is a collection of users with a "username" primary key which is unique. There is also a collection of posts which have as one of thier fields the username, in most cases we just display the posts without reference to the user document, the username is suffient to display thier identity and avatar. unless somebody wants to do something with the author, like send them a message, or look at thier profile. Viewing all the posts by username is also easy.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CAOe6dJDVwyMuhWQGL2yiZhur3Fei9_1oufuY95KVnR2CzjQy-Q%40mail.gmail.com.
This is the perfect case where you will use MongoDB, key value, in a bson (json like) file. here is your schema:
User : {textRecordA:{[textRecord1A:{data},textRecord2A:{data},textRecord3A:{data},]},textRecordB:{[textRecord1B:{data},textRecord2B:{data},textRecord3B:{data},]},textRecordC:{[textRecord1C:{data},textRecord2C:{data},textRecord3C:{data},]},}
Le vendredi 31 octobre 2014 08:06:21 UTC+1, Asad Dhamani a écrit :
I am building an application, and I am not sure whether it would make sense to use MongoDB. The application would be write-heavy.Don't know how useful this diagram is, but this would be the basic structure of the database:Basically, each user would have multiple records(which could go into tens of thousands range), and each of those records would have 3 metadata records, say title, description, and tags. Most of the operations would be write operations. All of the data would be validated by the backend before being added to the database. Some Googling has led me to believe that a relational database like Postgres or MySQL would make much more sense for my use case[1]. Is that correct, or is Mongo relevant for my use case?
We have exactly this structure on our mongo based 3d printing news site microfabricator.com
There is a collection of users with a "username" primary key which is unique. There is also a collection of posts which have as one of thier fields the username, in most cases we just display the posts without reference to the user document, the username is suffient to display thier identity and avatar. unless somebody wants to do something with the author, like send them a message, or look at thier profile. Viewing all the posts by username is also easy.
On Nov 3, 2014 10:41 AM, "Asya Kamsky" <as...@mongodb.com> wrote:
I think maybe you missed the part where in the original post it was said that"user would have multiple records(which could go into tens of thousands range)"Your suggested schema would not work well at all.
Asya
On Sun, Nov 2, 2014 at 1:25 PM, aliane abdelouahab <alabde...@gmail.com> wrote:
This is the perfect case where you will use MongoDB, key value, in a bson (json like) file. here is your schema:
User : {textRecordA:{[textRecord1A:{data},textRecord2A:{data},textRecord3A:{data},]},textRecordB:{[textRecord1B:{data},textRecord2B:{data},textRecord3B:{data},]},textRecordC:{[textRecord1C:{data},textRecord2C:{data},textRecord3C:{data},]},}
Le vendredi 31 octobre 2014 08:06:21 UTC+1, Asad Dhamani a écrit :
I am building an application, and I am not sure whether it would make sense to use MongoDB. The application would be write-heavy.Don't know how useful this diagram is, but this would be the basic structure of the database:Basically, each user would have multiple records(which could go into tens of thousands range), and each of those records would have 3 metadata records, say title, description, and tags.Most of the operations would be write operations. All of the data would be validated by the backend before being added to the database. Some Googling has led me to believe that a relational database like Postgres or MySQL would make much more sense for my use case[1]. Is that correct, or is Mongo relevant for my use case?
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/d1bdb158-965a-498f-b261-428401edf5bf%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CAOe6dJDVwyMuhWQGL2yiZhur3Fei9_1oufuY95KVnR2CzjQy-Q%40mail.gmail.com.