Skip to content

Commit 1828432

Browse files
authored
Fix select notes (#2)
1 parent 2f560c8 commit 1828432

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,10 @@ crud.delete('customers', 1)
131131

132132
### Select
133133

134-
`CRUD` performs select across a distributed space with a conditions.
135-
Condition can use field names, field numbers or index name as an operand.
136-
The first condition that uses index name or matches first parts of any index is
137-
used to select an index to iterate over.
138-
If no such index found, the primary index is used.
139-
140-
**Note**, that non-TREE indexes are ignored!
134+
`CRUD` supports multi-conditional selects, treating a cluster as a single space.
135+
The conditions may include field names or numbers, as well as index names.
136+
The recommended first condition is a TREE index; this helps reducing the number
137+
of tuples to scan. Otherwise a full scan is performed.
141138

142139
```lua
143140
local objects, err = crud.select(space_name, conditions, opts)

0 commit comments

Comments
 (0)