How to create index after every query insert?



How to create index after every query insert?..

Answer / Rakesh Kumar Rajak

In MongoDB, you cannot create an index that is automatically updated after every insert. However, you can use the `ensureIndex` method to create an index and then periodically update it using a script or cron job.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

What happen when an index does not fit into ram?

1 Answers  


Can mongodb scale?

1 Answers  


Why 32 bit version of mongodb are not preferred ?

1 Answers  


Define mongodb SUM?

1 Answers  


Which programming language is used to write mongodb queries?

1 Answers  


What are the key features of mongodb?

1 Answers  


Does mongodb have a gui?

1 Answers  


What should all points be taken into consideration while creating a schema in mongodb?

1 Answers  


What is the use of mongodb sort()?

1 Answers  


What is 32-bit nuances?

1 Answers  


How to connect mongodb with java in eclipse?

1 Answers  


Why is mongodb called mongodb?

1 Answers  


Categories