It'd be nice if, at the end of the test
# spicedb
t
It'd be nice if, at the end of the test, I could say "delete all relationships this key wrote"
v
what problem are you trying to solve?
y
is the idea that you have a long-running serve-testing instance and want to be able to "tear down" at the end of a particular test run?
t
Yeah exactly! As mentioned in the thread right above, I know I can do it manually if it becomes a real problem, but I thought I'd ask in case there's an easier way
y
one thing that springs to mind is deleting a set of relations when the last active connection with a given preshared key is closed
but a
docker-compose restart spicedb-testing
would do the same 🤔
there isn't an existing mechanism that i know of
t
Gotcha, no worries then. Thanks!
y
sure thing!
v
This runs a memory datastore. Deleting won't really reduce memory usage because of the revisioning system (this is also generally true for postgres and mysql, until GC window elapses)