GraphDbAccessor::Build index - docs change
Reviewers: teon.banek, matej.gradicek Reviewed By: teon.banek, matej.gradicek Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D534
This commit is contained in:
parent
e08c6bf3ff
commit
d35b27bf66
@ -248,11 +248,17 @@ class GraphDbAccessor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief - Build the given label/property Index. BuildIndex shouldn't be
|
* Adds an index for the given (label, property) and populates
|
||||||
* called in the same transaction where you are creating/or modifying
|
* it with existing vertices that belong to it.
|
||||||
* vertices/edges. It should be a part of a separate transaction. Blocks the
|
*
|
||||||
* caller until the index is ready for use. Throws exception if index already
|
* You should never call BuildIndex on a GraphDbAccessor
|
||||||
* exists or is being created by another transaction.
|
* (transaction) on which new vertices have been inserted or
|
||||||
|
* existing ones updated. Do it in a new accessor instead.
|
||||||
|
*
|
||||||
|
* Build index throws if an index for the given
|
||||||
|
* (label, property) already exists (even if it's being built
|
||||||
|
* by a concurrent transaction and is not yet ready for use).
|
||||||
|
*
|
||||||
* @param label - label to build for
|
* @param label - label to build for
|
||||||
* @param property - property to build for
|
* @param property - property to build for
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user