Real-time index is a main type of Manticore indexes. It allows adding, updating and deleting documents with immediate availability of the changes. Real-time index settings can be defined in a configuration file or online via CREATE
/UPDATE
/DELETE
/ALTER
commands.
Real-time index internally consists of one or multiple plain indexes called chunks. There can be:
- multiple disk chunks. They are stored on disk with the same structure as any plain index
- single ram chunk. Stored in memory and used as an accumulator of changes
RAM chunk size is controlled by rt_mem_limit. Once the limit is exceeded the RAM chunk is flushed to disk in a form of a disk chunk. When there are too many disk chunks they can be merged into one for better performance using command OPTIMIZE.
- Add documents
- Update attributes and full-text fields
- Delete documents
- Truncate index
- Change schema online with help of command
ALTER
- Define index in a configuration file
- Use UUID for automatic ID provisioning
- Index data with help of indexer
- Link it with sources for easy indexing from external storages
- Update it's killlist_target, it's just not needed as the real-time index takes controls of it automatically
Extension | Description |
---|---|
.lock |
lock file |
.ram |
RAM chunk |
.meta |
RT index headers |
.*.sp* |
disk chunks (see plain index format) |