Postponed (maintainer needs more info)
Project:
Drupal core
Version:
main
Component:
entity system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Sep 2010 at 05:10 UTC
Updated:
7 Nov 2025 at 17:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
chx commentedComment #3
chx commentedNote that this is 8.x material because if you want an update like this then you need to worry about inconsistencies in your data while the query runs, lock contention and who knows what else. We need to ponder on what sort of updates we want to be allowed too.
Comment #4
catchdrupal.entityfieldupdatequery.164.patch queued for re-testing.
Comment #5
catchComment #6
sun@catch: Thanks!
@chx: Can you enlighten me? Why does db_update() not perform such checks normally then? The core implementation in field_sql_storage module performs just that. A db_update(). Can we agree on that we want to release and that we want to choose simplicity over perfectionism (like in this patch)?
Let's just make it work. No extra bells and whistles. If you need a more advanced EntityFieldUpdateQuery() in contrib, then let's simply make it swappable, by making functions like text_filter_format_delete() start with this instead:
whereas:
Comment #7
chx commentedI am sure I can find more things why this unresearched idea is unacceptable but I hope it's enough.
Comment #8
sunIf you store data that has to be updated in a read-only storage engine, then that's your fault.
Can you clarify? How do you suggest to execute the update query then?
Sure, good points, the patch is just a starting point, and the points you're raising should be easily resolvable.
Comment #9
chx commentedTotally D8 if not won't fix outright. You can not do such an update without firing the appropriate update hooks. I was wrong thinking a column update is doable. That's what bulk update API should be: batching / queuing a big bunch of update calls. And it needs to handle the case, even in small sites, yes, the problem that during the batch the site is totally inconsistent. This is way too complex for D7 now.
Comment #10
catchDowngrading all D8 criticals to major per http://drupal.org/node/45111
Comment #11
chx commentedOh also -- doing anything but a batched / queued update is not possible because you need to fire the entity_update hook.
So the ideal API module doing this would store storage an EFQ query and queue the keys necessayr to be upgraded (careful to do in say pages of a hundreds or thousands) plus a callback which does the update (specified by the API consumer). It would not just make sure to do a queued update but also on entity load add the entity type + id to the EFQ to verify whether it needs updating (probably needs to store the finished results somehow) and do the update as well so that there is no inconsistency.
Comment #12
Anonymous (not verified) commentedsubscribe
Comment #13
quicksketchConsidering the response to this issue (vague demand, unclear solution) I'm moving this to a normal feature request. Major tasks are now holding up new development of Drupal core per the new policy at http://drupal.org/node/1201874.
Comment #14
chx commentedComment #15
dawehnerComment #29
smustgrave commentedThank you for sharing your idea for improving Drupal.
We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #30
smustgrave commentedwanted to bump 1 more time.