Skip to content

Commit

Permalink
Doc wording tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Oct 4, 2024
1 parent 7f16958 commit 6c596c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apsw/bestpractice.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def connection_dqs(connection: apsw.Connection) -> None:
connection.config(apsw.SQLITE_DBCONFIG_DQS_DDL, 0)

def connection_optimize(connection: apsw.Connection) -> None:
"""Prepares query planner optimization
"""Enables query planner optimization
It enables the query planner to record cases when it would benefit
from having accurate statistics about tables and indexes for the
Expand All @@ -64,6 +64,8 @@ def connection_optimize(connection: apsw.Connection) -> None:
You can later run :code:`connection.pragma("optimize")` to have
those statistics updated, such as when closing a database or
periodically when the database is open for long periods of time.
The statistics are recorded in the database and help with future
queries during this connection, and all future connections.
There is more detail in the `documentation
<https://sqlite.org/lang_analyze.html>`__.
Expand Down

0 comments on commit 6c596c5

Please sign in to comment.