Create an index on one or more columns in an Andromeda table
createIndex(tbl, columnNames, unique = FALSE, indexName = NULL)
An Andromeda
table (or any other 'DBI' table).
A vector of column names (character) on which the index is to be created.
Should values in the column(s) be enforced to be unique?
The name of the index. If not provided, a random name will be generated.
Invisibly returns the input table.
Indices can speed up subsequent queries that use the indexed columns, but can take time to create, and will take additional space on the drive.