Commit 39033ed7 authored by Thorsten Simons's avatar Thorsten Simons

1.3.1 - documented how to use a different folder for DB tmp indexes

parent 34d6b3cd
......@@ -108,6 +108,22 @@ Running **hcprequestanalytics** is a two step process:
percentile_req : 22.797 seconds
analytics finished after 34.129 seconds
.. Warning::
Some of the provided queries will cause the database to create temporary
indexes, which can use the same capacity on disk as the database itself.
These indexes will go into the default tmp folder configured for the
user, which might not have enough free space to store them. This will
cause the respective queries to fail. If **hcprequestanalytics** prints
error messages about *filesystem or database full*, you can make
sure that an appropriately sized folder is used by setting this
environment variable before running **hcprequestanalytics**::
$ export SQLITE_TMPDIR=/wherever/you/have/enough/space
Make sure to replace ``/wherever/you/have/enough/space`` with a path
that matches your systems reality, of course!
.. Tip::
You can run selected queries by adding them to the end of the command::
......@@ -208,4 +224,4 @@ Running **hcprequestanalytics** is a two step process:
available. Using that pool of subprocesses, it runs queries in
parallel. On a 4-CPU system, the overal runtime should go down to
roughtly a quarter; the limiting factors are descibed in the
:doc:`80_goodtoknow` chapter.
\ No newline at end of file
:doc:`80_goodtoknow` chapter.
......@@ -40,6 +40,16 @@ Now think of running some of these queries in parallel, each creating its own
temp indexes. While analyzing huge databases, this will likely overload your
system, unless you have a lot of disk space.
If **hcprequestanalytics** prints error messages about *filesystem or database
full*, you can make sure that an appropriately sized folder is used for the
temporary database indexes by setting this environment variable before running
**hcprequestanalytics**::
$ export SQLITE_TMPDIR=/wherever/you/have/enough/space
Make sure to replace ``/wherever/you/have/enough/space`` with a path that
matches your systems reality, of course!
Memory
------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment