Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/guides/administration/configuring-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,22 @@ This is particularly true when using HDDs instead of SSDs or NVME storage.
ALTER SYSTEM SET (WAL_COMPRESSION = 'zstd');
```

### `jit`

PostgreSQL's just-in-time (JIT) compilation can accelerate long-running, CPU-bound
analytical queries. It tends to hurt the short, latency-sensitive queries that
dominate Dependency-Track's workload. When the planner overestimates a query's cost,
it compiles machine code whose overhead can exceed the time it saves by orders of
magnitude.

Dependency-Track already disables JIT for individual queries where it was found to be
actively harmful. Disabling it globally usually yields more consistent performance.
This optimization is common enough that PostgreSQL 19 changes the default to `off`.

```sql
ALTER SYSTEM SET jit = off;
```

## Centralised connection pooling

For large deployments (that is, upwards of 5 instances), it can become undesirable for
Expand Down
25 changes: 25 additions & 0 deletions docs/reference/configuration/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,31 @@ deployments. For context on when and why to apply these, see the
</tbody>
</table>

### `jit`

<table>
<tbody style="border: 0">
<tr>
<th style="text-align: right">Default</th>
<td style="border-width: 0"><code>on</code></td>
</tr>
<tr>
<th style="text-align: right">Recommendation</th>
<td style="border-width: 0"><code>off</code></td>
</tr>
<tr>
<th style="text-align: right">References</th>
<td style="border-width: 0">
<ul>
<li><a href="https://postgresqlco.nf/doc/en/param/jit/">Documentation</a></li>
<li><a href="https://www.postgresql.org/docs/current/jit-decision.html">When to JIT? by PostgreSQL</a></li>
<li><a href="https://www.postgresql.org/message-id/E1w8GWU-002bSL-31@gemulon.postgresql.org">Default change in PostgreSQL 19</a></li>
</ul>
</td>
</tr>
</tbody>
</table>

## Schema migrations

By default, schema migrations run on startup as an [init task](init-tasks.md), using [Flyway].
Expand Down