index: Indexes the database for faster retrieval

Description Usage Arguments Examples

View source: R/setCypher.R

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", cacheEnv)

Arguments

label

label of the nodes you want to index

property

the property key on which you would like to index on

cacheEnv

stores details

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)

MetamapsDB documentation built on May 1, 2019, 9:23 p.m.