avstudnitz / AvS_ScopeHint

Creates a warning if a configuration setting is overwritten on a lower level (website or store view)
86 stars 23 forks source link

Performance? #6

Closed amenk closed 11 years ago

amenk commented 11 years ago

Did you make any performance tests? As I see it currently, each product / category value is loaded separately from the database? Is that correct? It might make sense to load the full product for other scopes and then compare.

amenk commented 11 years ago

Product edit page with active AvS_ScopeHint: ~ 5.4sec Product edit page with in-active AvS_ScopeHint: ~ 2.5sec

:-(

avstudnitz commented 11 years ago

Sorry for that. I will improve that, it shouldn't be too hard to load the product just once for every store.

avstudnitz commented 11 years ago

Made the refactoring. Number of DB requests is cut down - for every store view, the product (category) is just loaded once now (see c968fb0)