Developer forum

Forum » Feature requests » Option to turn off price loading per EcomModule

Option to turn off price loading per EcomModule

Evaldas Raisutis
Evaldas Raisutis
Reply

It would be nice if we could turn off price loading per-ecom-module-basis. For instance, if we are implementing a type-ahead search, where we know we don't want to display prices - we suffer performance loss just because prices are being loaded for search results. Take into account that prices might be loaded by a custom PriceProvider and you might have yourself quite a performance issue when loading larger sets of data.

Alterntively, are more "forward" looking approach, would be if we could pass query string parameters into an ecom module instructing it to turn off certain features (like loading prices).


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Evaldas

That will actually come in 9.5 as part of what we call the viewengine. That makes it possible to use a built in web api where you can specify which properties to load and which to not gaining much better performance than you see now.

To fix the issue now, you can add the check in your priceprovider on PreparePrices and FindPrice and return null if the querystring parameter is present.

BR Nicolai

Votes for this answer: 1