Needs work
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Views integration
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Sep 2012 at 15:01 UTC
Updated:
22 Jan 2019 at 17:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
honza pobořil commentedComment #2
rszrama commentedIt would probably be better for us to just do a complete commerce_order_load() there. I'm not sure why we decided to make the pseudo order object, but if I'm not mistaken, by the time these links are being rendered, Views will have already loaded the entire order object into the static entity cache. Therefore, doing the full load here shouldn't be a performance hit.
Any chance you can confirm my suspcision?
Comment #3
honza pobořil commentedI tried both variants - with pseudo entity and with entity load. In the experiment both codes were similar performance (execution time and memory usage), so your opinion is true. Here is patch.
By the way, if base table for view is not commerce_order, order entities wouldn't be loaded in view, so edit link load them fot him self and performance could be different.
Comment #4
chris matthews commentedThe 6 year old patch in #3 does not apply to the latest commerce 7.x-1.x-dev and (if still relevant) needs to be rerolled.