mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-16 21:08:00 +00:00
25dc7bfe72
# Which Problems Are Solved Cache implementation using a PGX connection pool. # How the Problems Are Solved Defines a new schema `cache` in the zitadel database. A table for string keys and a table for objects is defined. For postgreSQL, tables are unlogged and partitioned by cache name for performance. Cockroach does not have unlogged tables and partitioning is an enterprise feature that uses alternative syntax combined with sharding. Regular tables are used here. # Additional Changes - `postgres.Config` can return a pxg pool. See following discussion # Additional Context - Part of https://github.com/zitadel/zitadel/issues/8648 - Closes https://github.com/zitadel/zitadel/issues/8647 --------- Co-authored-by: Silvan <silvan.reusser@gmail.com>
10 lines
186 B
SQL
10 lines
186 B
SQL
delete from cache.objects o
|
|
using cache.string_keys k
|
|
where k.cache_name = $1
|
|
and k.index_id = $2
|
|
and k.index_key = any($3)
|
|
and o.cache_name = k.cache_name
|
|
and o.id = k.object_id
|
|
;
|
|
|