From 4b088d7c50b217a1d7566e68016794c474593fd9 Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Mon, 10 Jun 2013 14:45:20 +0200 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dd0e3fd..ca0a4d1 100644 --- a/README.md +++ b/README.md @@ -284,7 +284,7 @@ db.remove({ system: 'solar' }, { multi: true }, function (err, numRemoved) { ``` ### Indexing -NeDB supports indexing. It gives a very nice speed boost and can be used to enforce a unique constraint on a field. You can index any field, including fields in nested documents using the dot notation. For now, indexes are only used for value equality, but I am planning on adding value comparison soon. +NeDB supports indexing. It gives a very nice speed boost and can be used to enforce a unique constraint on a field. You can index any field, including fields in nested documents using the dot notation. For now, indexes are only used to speed up basic and $in queries, but I am planning on adding value comparison soon. To create an index, use `datastore.ensureIndex(options, cb)`, where callback is optional and get passed an error if any. The options are: