mysql - slow MongoDB with an easy query -


I am a MongoDB starter and I have a small problem like a simple query:

 
Code> Db.table.find ({"text": / a /, "nb_ret": {"$ gt": 2}})

5min like before giving the result < / P

Intel Xeon E3 1225v2, 4C / 4T, 3.2GHz +, RAM: 32 Go, Disc: 2x2 to SATA

This is normal?

Your query is not easy in any way, because it involves executing a match against a regular expression is.

Some fixes are new to . E.g.,

  db.table.ensureIndex ({"text": "text"})    

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -