SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Invalid plan caching for views

Open joshua-spacetime opened this issue 1 month ago • 0 comments

Reported by user in the public discord. It appears they are hitting a bug in the subscription plan cache. Note, query plans don't yet support proper parameters. Hence we must take care to compute the key correctly when caching plans that are inherently parameterized. RLS plans fall into this category, but so do ViewContext views which we are most likely ignoring when computing the query hash.

joshua-spacetime avatar Nov 15 '25 00:11 joshua-spacetime