Reference/pardottxt

From Kx Wiki
Jump to: navigation, search

par.txt

File par.txt defines a top-level partitioning of a database into directories. Each row of par.txt is a directory path. Each such directory would itself be partitioned in the usual way, typically by date. The directories should not be empty. The par.txt file should be created in the main database directory.

par.txt is used to unify partitions of a database, presenting them as a single database for querying.

This is particularly useful in combination with multithreading. Starting the q process with slave threads (see command line option -s), and where each partition in par.txt is on a separate local disk:

For example, par.txt might be:

/0/db
/1/db
/2/db
/3/db

with directories :

~$ls /0/db
2009.06.01 2009.06.05 2009.06.11 ...

~$ls /1/db
2009.06.02 2009.06.06 2009.06.12 ...

...

Some Considerations

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox