View source: R/populateDBFunctions.R
dbCreateIndexes | R Documentation |
Create a set of indexes on the tables in a SEND database to optimize performance of extraction of data from the different functions in the package.
dbCreateIndexes(dbToken, replaceExisting = FALSE)
dbToken |
Mandatory |
replaceExisting |
Mandatory, character |
All the indexes are named <domain name>_sendigr_<nn>
- .e.g.
TS_sendigr_01
.
If any additional indexes are manually created in the database, avoid to
include 'sendigr' in the name, because all existing indexes with that
included in the name will be initially deleted when execution the function
with replaceExisting = TRUE
.
It's recommended to wait with the creation of the indexes until the major
amount of studies to be loaded in to the database are loaded.
Databases supported are SQLite and PostgreSQL, the checkDbType function makes sure one of those types are used
No return value, called for side effects
## Not run:
createAllIndexes(myDbToken)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.