insert - MongoDB insertion based on reading -


in data, need if combination of attributes exist in database yet. if update it, if not insert new doc. know easy in relational database if set combination of attributes primary key, don't find same thing in mongo. set combination index, query database find if count zero, decide update or insert. growth of data size (currently 2mill docs), query ate memory faster inserting without query. have idea?


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -