Update README.md

pull/2/head
Louis Chatriot 12 years ago
parent fce60d19fa
commit 4b088d7c50
  1. 2
      README.md

@ -284,7 +284,7 @@ db.remove({ system: 'solar' }, { multi: true }, function (err, numRemoved) {
``` ```
### Indexing ### 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: To create an index, use `datastore.ensureIndex(options, cb)`, where callback is optional and get passed an error if any. The options are:

Loading…
Cancel
Save