Hi,
If I have 200 million records and using mongodb as real time search engine. Is it possible?
I have read about high performance search engine, mostly using Sphinxsearch, Elastic search, Xapian etc.
I have tried using mongodb with 5 million records as search engine, it runs slowly.
database does process 200 insert/s and in the same time it search data with mongo regex.
this is my server specification:
Raid 1,
RAM 24 GB
Quad Core @2.4 GHz
Operating System: Ubuntu Server 10.04
In My Database I just create 1 db and 1 collection
> show collections
system.indexes
system.users
userinfo
> db.userinfo.findOne()
{
"_id" : ObjectId("4c5f7c87992b940812000000"),
"useragent" : "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2",
"ipaddress" : "192.168.2.10",
"requesttime" : 1281326215,
"date" : "2010-08-09"
}
> db.stats()
{
"collections" : 4,
"objects" : 3718804,
"avgObjSize" : 289.263861176873,
"dataSize" : 1075715604,
"storageSize" : 1300811776,
"numExtents" : 27,
"indexes" : 5,
"indexSize" : 1387194240,
"fileSize" : 6373244928,
"ok" : 1
}
> db.serverStatus()
{
"version" : "1.6.0",
"uptime" : 6445,
"uptimeEstimate" : 3404,
"localTime" : "Mon Aug 09 2010 20:03:59 GMT+0700 (WIT)",
"globalLock" : {
"totalTime" : 6444515919,
"lockTime" : 231870232,
"ratio" : 0.03597946454230801,
"currentQueue" : {
"total" : 0,
"readers" : 0,
"writers" : 0
}
},
"connections" : {
"current" : 3,
"available" : 19997
},
"indexCounters" : {
"btree" : {
"accesses" : 101613,
"hits" : 101613,
"misses" : 0,
"resets" : 0,
"missRatio" : 0
}
},
"backgroundFlushing" : {
"flushes" : 107,
"total_ms" : 50274,
"average_ms" : 469.85046728971963,
"last_ms" : 1012,
"last_finished" : "Mon Aug 09 2010 20:03:35 GMT+0700 (WIT)"
},
"opcounters" : {
"insert" : 1783641,
"query" : 1174409,
"update" : 0,
"delete" : 0,
"getmore" : 0,
"command" : 3529436
},
"asserts" : {
"regular" : 0,
"warning" : 0,
"msg" : 0,
"user" : 1,
"rollovers" : 0
},
"note" : "run against admin for more info",
"ok" : 1
}
I have added fullTextSearch Index to useragent
My Server is standing Alone.
Thanks,
Regards
Nuris.