M
M
MadJeck2012-02-11 20:22:03
MongoDB
MadJeck, 2012-02-11 20:22:03

Missing records from mongoDB

There is a collection with a million+ entries. Entries are added to it or updated using upsert. Records from this collection periodically disappear. It seems to happen when there is a shortage of RAM. Has anyone encountered such a problem? How to avoid?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
lorien, 2012-02-11
@lorien

How much RAM is there? How much does the data weigh? How much do indexes weigh?

M
MagaSoft, 2012-02-11
@MagaSoft

Try to enable journaling (if not enabled) and check with getLastError for which operations records are lost.

S
Sannis, 2012-02-12
@Sannis

Of course, I'm taking a risk, but maybe you shouldn't use Mongo for this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question