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 |
How to use mongoose with node.js?
Is mongodb better than mysql? Explain
Is mongodb a relational database? Explain
What is storage engine in mongodb?
Which all languages can be used with mongodb?
Is mongodb encrypted?
Is mongodb a server?
What is the benefit of mongodb?
How many employees does mongodb have?
Why would you use mongodb?
What is the use of mongodb compass?
How big can a mongodb be?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)