Skip to content

Commit

Permalink
Update properties-session.rst
Browse files Browse the repository at this point in the history
Add JDBC Properties section with JdbcMetadataConfig properties
  • Loading branch information
efrancisworks authored and tdcmeehan committed Jan 10, 2025
1 parent 9fbbc51 commit 0d22e37
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions presto-docs/src/main/sphinx/admin/properties-session.rst
Original file line number Diff line number Diff line change
Expand Up @@ -337,3 +337,52 @@ The corresponding configuration property is :ref:`admin/properties:\`\`optimizer
Enable retry for failed queries who can potentially be helped by HBO.

The corresponding configuration property is :ref:`admin/properties:\`\`optimizer.retry-query-with-history-based-optimization\`\``.

JDBC Properties
---------------


``useJdbcMetadataCache``
^^^^^^^^^^^^^^^^^^^^^^^^

* **Type:** ``boolean``
* **Default value:** ``false``

Cache the result of the JDBC queries that fetch metadata about tables and columns.

``allowDropTable``
^^^^^^^^^^^^^^^^^^

* **Type:** ``boolean``
* **Default value:** ``false``

Allow connector to drop tables.

``metadataCacheTtl``
^^^^^^^^^^^^^^^^^^^^

* **Type:** ``Duration``
* **Default value:** ``0``

Setting a duration controls how long to cache data.

``metadataCacheRefreshInterval``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

* **Type:** ``Duration``
* **Default value:** ``0``

``metadataCacheMaximumSize``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

* **Type:** ``long``
* **Default value:** ``1``

``metadataCacheThreadPoolSize``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

* **Type:** ``int``
* **Default value:** ``1``

The value represents the max background fetch threads for refreshing metadata.

0 comments on commit 0d22e37

Please sign in to comment.