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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -