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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -