Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
field system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 May 2009 at 11:01 UTC
Updated:
21 Apr 2022 at 20:21 UTC
Jump to comment: Most recent
Comments
Comment #1
bjaspan commentedI request holding off on this until #367753: Bulk deletion is closed.
I also wonder why we would bother with this at all. Sure, maybe we *can* make deletes into a multiple operation, but why introduce the extra complexity?
Comment #2
catchAs in the node_delete_multiple() case - if you bulk delete 50 nodes, each of those has ten fields, then at the moment you're looking at 500 queries just from Field API - whereas you'd have 10 (?) queries if field_attach_delete() is multiple.
However there's a few issues with this - only node has a multiple delete, we don't know if other fieldable objects will or not. Also hook_node_delete() has stayed singular so far - not sure if moshe has plans to change that.
Comment #3
moshe weitzman commentedComments are about to get multiple delete. I would move multiple delete all the wway to hook_node_delete() if folks think it is important. I don't think thats relevant for this patch though. field_attach does not listen on that hook.
Fast deletion is really important in the case of retrying data migrations. It can also be important for ephemeral data like research datasets, web services datasets, etc. I agree it isn't *that* important for most people, but when you need it, you need it bad.
Comment #4
stephencamilo commentedComment #5
hestenetReset issue status.