Skip to content

Indexes

Relic allows you to materialize indexes to enable certain query optimisations and to allow for direct index access for specialised high-performance work.

  • :hash nested hash map
  • :btree nested sorted map
  • :unique nested hash map that only allows 1 row per key

You shouldn't need to worry about indexes most of the time, as relic creates them for you for operations that really need them such as :join, :left-join and :fk.