hey all, I've been doing some testing
# spicedb
t
hey all, I've been doing some testing with removing large amounts of relationships using bulk-delete (5-8 million) and while I haven't hit any issues or resource consumption concerns yet...i figured it was worth asking if you all had a better recommendation for massive deletes like that not using bulk-delete. We've been using this after performance tests with our services as a means to reset but also are looking for a way to reset spiceDB after onboarding a new resource type so to speak if we needed to run the migration again and just want a clean slate without removing all relationships.
y
the easiest way to get rid of lots of data is typically to drop the entire database and re-run migrations and schema write
t
what if we only wanted to remove relationships of a specific resource type but there were other resource types we had to keep. As we onboard new internal services, the process will essentially create tons of relationships for a single resource type and if we wanted to back just those out, I figure bulk-delete or fetching each relationship and deleting one at a time might be the only options, with the latter not sounding like the most optimal. I thought about using backup/restore option but during the service's onboarding process, other services may write relationships so restore would lose those.
y
yeah, if that's a constraint then i would say the bulk delete option is your best option
t
Thanks for confirming, appreciate the help!
38 Views