Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
updated docs
Signed-off-by: Blake <blaketastic2@gmail.com>
  • Loading branch information
blaketastic2 committed Mar 31, 2025
commit e0cf916bb165e480df6a6d93edf143c1a3382315
3 changes: 3 additions & 0 deletions docs/reference/offline-stores/postgres.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ offline_store:
sslkey_path: /path/to/client-key.pem
sslcert_path: /path/to/client-cert.pem
sslrootcert_path: /path/to/server-ca.pem
entity_select_mode: temp_table
online_store:
path: data/online_store.db
```
Expand All @@ -40,6 +41,8 @@ online_store:
Note that `sslmode`, `sslkey_path`, `sslcert_path`, and `sslrootcert_path` are optional parameters.
The full set of configuration options is available in [PostgreSQLOfflineStoreConfig](https://rtd.feast.dev/en/master/#feast.infra.offline_stores.contrib.postgres_offline_store.postgres.PostgreSQLOfflineStoreConfig).

Additionally, a new optional parameter `entity_select_mode` was added to tell how Postgres should load the entity data. By default(`temp_table`), a temporary table is created and the entity data frame or sql is loaded into that table. A new value of `embed_query` was added to allow directly loading the SQL query into a CTE, providing improved performance and skipping the need to CREATE and DROP the temporary table.

## Functionality Matrix

The set of functionality supported by offline stores is described in detail [here](overview.md#functionality).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,9 @@ def _get_entity_schema(
{% endfor %}
FROM
{% if entity_select_mode == EntitySelectMode.embed_query %}
{{ left_table_query_string }}
{% else %}
entity_query
{% else %}
{{ left_table_query_string }}
{% endif %}
),

Expand Down
Loading