Skip to content

Latest commit

 

History

History

mongo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MongoDB worker for MZBench

Supports multiple groups of metrics.

connect

connect(login = "tester", password = "supersecret", host = "localhost", database = "test_database")

For more options please refer to connect function at mongodb driver.

insert

insert("mycollection", [t("field1", "value1", "field2", "value2")])

Insert a set of documents to "mycollection". In this case {field1:"value1", field2:"value2"}

delete

delete("mycollection", t("field1", "value1"))

Delete all documents from "mycollection" matching given selector.

find_one

find_one("mycollection", t("field1", "value1"))

Lookup document from "mycollection" matching given selector.

count

count("mycollection", t("field1", "value1"))

Count all documents from "mycollection" matching given selector.

Full example