When interacting with prices, the totals are cast to a Price datatype, this fetches info such as currency and customer groups. The issue is when you are dealing with a large number of records, any interaction with Prices will result in quite a big bottleneck.
This wouldn't be so bad if the casting was an "opt-in" thing, but since it happens automatically it can't really be avoided and if you were to try and index a large number of products, with a few variants each with pricing or tiered pricing, it will grind to a halt and in most cases run out of memory.
When interacting with prices, the totals are cast to a
Pricedatatype, this fetches info such as currency and customer groups. The issue is when you are dealing with a large number of records, any interaction with Prices will result in quite a big bottleneck.This wouldn't be so bad if the casting was an "opt-in" thing, but since it happens automatically it can't really be avoided and if you were to try and index a large number of products, with a few variants each with pricing or tiered pricing, it will grind to a halt and in most cases run out of memory.