addBioassayIndex {bioassayR} | R Documentation

## Index a bioassayR database

### Description

Indexing a bioassayR database before performing queries will drastically improve query performance. However, it will also slow down loading large amounts of additional data. Therefore, we recommend loading the majority of your data, using this function to index, and then performing queries.

### Usage

    addBioassayIndex(database)

### Arguments

`database` | A `BioassayDB` database to be indexed.

### Author(s)

Tyler Backman

### Examples

    ## create test database
    library(bioassayR)
    filename <- tempfile()
    mydb <- newBioassayDB(filename, indexed=FALSE)

    ## load any data at this point

    ## add database index
    addBioassayIndex(mydb)

    # perform queries here

    ## close and delete test database
    disconnectBioassayDB(mydb)
    unlink(filename)

[Package bioassayR version 1.32.1 Index]