Root directory structure
QuestDB creates the following file structure in its root_directory
:
By default, QuestDB's root directory will be the following:
conf
directory#
Contains configuration files for QuestDB:
file | description |
---|---|
date.formats | A list of date formats in plain text. |
mime.types | Mapping file used by the HTTP server to map file extension to response type when an user downloads a file. |
server.conf | Server configuration file. Find out more in the server configuration section. |
db
directory#
This directory contains all the files related to database tables. It is organised as follows:
- Each table has its own
table_directory
underroot_directory/db/table_name
- Within a
table_directory
, each partition has its ownpartition_directory
. - Within each
partition directory
, each column has its owncolumn_file
, for examplemycolumn.d
- If a given column has an index, then there will also
be an
index_file
, for examplemycolumn.k
The table also stores metadata in _meta
files:
If the table is not partitioned, data is stored in a directory called default
:
caution
As tempting as it may be to delete partitions by manually removing the directories from the file system, we really discourage this. The partitions are organised with metadata and deleting them directly could corrupt the table. We recommend you use ALTER TABLE DROP PARTITION for this effect.
log
directory#
Contains the log files for QuestDB:
Log files look like this:
public
directory#
Contains the web files for the Web Console:
snapshot
directory#
Created when a filesystem (disk) snapshot is collected. Contains table metadata file copies.
tmp
directory#
Created when a COPY
SQL command is run for a
partitioned table and no value is set for the cairo.sql.copy.work.root
configuration setting. Contains temporary import files like indexes or temporary
partitions.