Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable JIT in Postgres settings #435

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

relicode
Copy link

@relicode relicode commented Oct 5, 2024

Use of PostgreSQL JIT is not recommended. It is enabled by default in PostgreSQL 12 and higher. JIT is benifitial for slow queries where executing the SQL takes substantial time and that time is not spent in function calls. This is not the case for rendering, where most time is spent either fetching from disk, in PostGIS functions, or the query is fast. In theory, the query planner will only use JIT on slower queries, but it is known to get the type of queries map rendering requires wrong.

More info

Use of PostgreSQL JIT is not recommended. It is enabled by default in PostgreSQL 12 and higher. JIT is benifitial for slow queries where executing the SQL takes substantial time and that time is not spent in function calls. This is not the case for rendering, where most time is spent either fetching from disk, in PostGIS functions, or the query is fast. In theory, the query planner will only use JIT on slower queries, but it is known to get the type of queries map rendering requires wrong.

https://github.com/gravitystorm/openstreetmap-carto/blob/master/INSTALL.md#disable-jit
@relicode relicode changed the title Disable JIT on Postgres settings Disable JIT in Postgres settings Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant