How can I clear the mongoDB oplog?

Let’s learn how can I clear the mongoDB oplog. The most accurate or helpful solution is served by stackoverflow.com.

There are ten answers to this question.

Best solution

capped collections - How can I clear the mongoDB oplog ...

Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute:

stackoverflow.com

Other solutions

How can I return 1.7 gb of mongodb documents when a query is made to the server in a web app?

In Spring mvc + mongodb application, I have 4 lakh documents. Assuming if I need to return 3 lakh documents when a query is made, how can I do that? Following is the stack trace, HTTP Status 500 - Request processing failed; nested exception is java.lang...

Answer:

You don't. The problem here is not some configuration setting, it's a technical misunderstanding. 2GB...

Read more

Gaëtan Voyer-Perrault at Quora Mark as irrelevant Undo

Do internet companies such as Facebook or Google use MongoDB despite the AGPL license?

Internet companies don't use AGPL licensed code. MongoDB is AGPL licensed. MongoDB Licensing 10Gen says this shouldn't be a problem since the database drivers are licensed under Apache. But if anyone else writes a custom driver, that would have to be...

Answer:

Google has done their licensing homework and they specifically ban MongoDB. This is an excerpt from...

Read more

Dan Dascalescu at Quora Mark as irrelevant Undo

What is considered a collection in MongoDB?

Is it correct to believe that all namespaces in MongoDB - providing they encapsulate documents, can be considered collections? For example: mongodb.entities.users  {} mongodb.entities {} mongodb.content.items {} mongodb.content.comments {} This is a...

Answer:

http://www.mongodb.org/display/D... - they are clear about what Collections mean :-)

Read more

Raghavendra Kidiyoor at Quora Mark as irrelevant Undo

Is anyone logging the applications logs to MongoDB? Is it possible to run real time analysis/monitoring jobs on the log objects in MongoDB?

I am currently looking into an option of writing application logs to MongoDB using  log4mongo-java. Is any one logging the applications logs to mongoDB? Is it possible to run real time analysis/monitoring jobs on the log objects in MongoDB?

Answer:

We are dumping 100.000 log-document/day to mongodb and also we have a capped collection to view real...

Read more

Hasan Tayyar Beşik at Quora Mark as irrelevant Undo

Is it normal that MongoDB resident memory keeps growing?

I have one MongoDB(version 2.0.2) instance in production environment whose resident memory keeps growing and, in about 3 months, consumes up 24G physical RAM. The memory usage stats is as below: Currently, the MongoDB instance runs well and there is...

Answer:

Does MongoDB just try to consume all RAM to be mos efficient? Most databases just try to consume all...

Read more

Gaëtan Voyer-Perrault at Quora Mark as irrelevant Undo

Can MongoDB index for the "$exists" query?

In some data mining scenarios, I have a MongoDB collection whose records are heterogenous (i.e. they can have different keys). I often query for "which records have a field with a given key", as in db.coll.find({"fieldname":{$exists...

Answer:

In MongoDB 1.8 $exists doesn't use indexes. In 1.9 it does[1]. 1.9 is the unstable development release...

Read more

David Mytton at Quora Mark as irrelevant Undo

Cassandra or mongodb for mapping time-series data + OLAP?

I read this post before putting this question : What is the best online platform for storing structured time series data and reporting on it? But have specific question to choose Cassandra or MongoDB for this, being open-source and easy licensing. I...

Answer:

- Cassandra is very good at scaling with wide rows (which comes in very handy with time series data...

Read more

Robin Verlangen at Quora Mark as irrelevant Undo

Is it normal that inserting to MongoDB takes random time in PHP?

I have one web application written in PHP and backed by MongoDB. For each web access, there is one access log written to one MongoDB collection named access in one database visits_log. The database visits_log has only that collection to reduce write...

Answer:

> Is it normal that inserting to MongoDB takes random time...? It's not "normal" but it...

Read more

Gaëtan Voyer-Perrault at Quora Mark as irrelevant Undo

Why mongodb is locked?

Hey folks, my development pc is 32 bit. and I work with mongodb. When I run the code I wrote, sometimes I get locked in MongoDB. I deleted from the file the problem solved. /var/lib/mongodb/mongod.lock So I always have to do it? Why MongoDB crashes?

Answer:

If mongodb is running and improper shutodown happens, then this problem appears. You can repair it by...

Read more

Jayant Gs at Quora Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.