index: Indexes the database for faster retrieval

Description Usage Arguments Examples

Description

'index' indexes nodes based on the given property. Lets you do fast search for a node using a property field.

Usage

1
index(label, property = "contig")

Arguments

label

label of the nodes you want to index

property

the property key on which you would like to index on

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
f = future({
    dbquery(query="CREATE INDEX ON :contigs(contig)", justPost = TRUE)
    dbquery(query="CREATE INDEX ON :contigs(bin)", justPost = TRUE)
    dbquery(query="CREATE INDEX ON :Taxon(taxid)", justPost = TRUE)
    dbquery(query="CREATE INDEX ON :cpd(cpd)", justPost = TRUE)
    message
}) %plan% multiprocess

## End(Not run)

etheleon/metamaps documentation built on May 16, 2019, 9:05 a.m.