Closed cmyui closed 4 months ago
Is this going to work?
Yeah it works -- I used this for #642. I don't plan to merge this, it's pretty hacky (and requires a db reset) lol, just wanted to check the diff.
Hey, do you know why trimming one table, takes a long time to do it. I think my wsl ubuntu is fcked...
Hey, do you know why trimming one table, takes a long time to do it. I think my wsl ubuntu is fcked...
Not related to this PR or bpy, please ask on the Discord instead or google. But just drop the table and re-create it.
Hey, do you know why trimming one table, takes a long time to do it. I think my wsl ubuntu is fcked...
Not related to this PR or bpy, please ask on the Discord instead or google. But just drop the table and re-create it.
DELETE FROM table
:
Hey, do you know why trimming one table, takes a long time to do it. I think my wsl ubuntu is fcked...
Not related to this PR or bpy, please ask on the Discord instead or google. But just drop the table and re-create it.
DELETE FROM table
:
that's even slower than truncating because of the way it deallocates + it writes to the undo log
Hey, do you know why trimming one table, takes a long time to do it. I think my wsl ubuntu is fcked...
Not related to this PR or bpy, please ask on the Discord instead or google. But just drop the table and re-create it.
DELETE FROM table
:that's even slower than truncating because of the way it deallocates + it writes to the undo log
If you do it in a transaction then not really lol
Hey, do you know why trimming one table, takes a long time to do it. I think my wsl ubuntu is fcked...
Not related to this PR or bpy, please ask on the Discord instead or google. But just drop the table and re-create it.
DELETE FROM table
:that's even slower than truncating because of the way it deallocates + it writes to the undo log
If you do it in a transaction then not really lol
I don't think transactions have anything to do with this. On DELETE, every row is locked separately, while TRUNCATE locks the whole table.
truncate tries to delete the data but sometimes gives an error to fix it
Describe your changes
Related Issues / Projects
Checklist