supabase / supavisor

A cloud-native, multi-tenant Postgres connection pooler.
https://supabase.github.io/supavisor/
Apache License 2.0
1.66k stars 55 forks source link

feat: clear tenant's cache on update or delete #309

Closed abc3 closed 4 months ago

abc3 commented 4 months ago

In this PR, we have introduced functionality to clear the entire internal cache for a specific tenant when an update or delete operation is performed through an API call. Additionally, we have disabled cache clearing when the pool is terminated.

chasers commented 4 months ago

Is there a reason you're doing those inspects everywhere? Seems odd idk.

abc3 commented 4 months ago

I use inspect() to make valid map's key/value pairs, and then it will be possible to safely encode them to JSON.