amppA
Convex Communityβ€’2y agoβ€’
19 replies
ampp

Deleting troubles. ents etc.

It seems like i'm in a type of dependency hell with this stuff, every time i have to track down a bug in our init system.

I really want that delete all tables in the UI, there has been so much wasted time trying all this other stuff.

We wrote an db wipe script to remember the empty state by exporting using npx convex export. But it is very slow some times because importing blank data takes forever for no great reason IMHO.

But if we change the db layout it becomes out of date and misses the new tables with data. So you have to keep track of that.

Then we accidently had a export with new tables with data that didn't match the new schema.

So then we made a script that loops over the schema to delete everything but it follows the scheduled deletes so a lot of stuff is not actually deleted.

With ents how do you delete something ignoring soft deletion/scheduled rules?

Also, I feel like there must be a bug with ents on anything but scheduled deletes, the deletes do get scheduled. But nothing else ever gets completed immediately if it is a root table in a soft delete "tree". Im trying to defer debugging that as i dont care but its making all the above harder. Maybe I'm reading the documentation wrong, but i only see the deletionTime and it never gets deleted. Do i need to execute some other command?
Was this page helpful?