Here we are trying to implement price filtering for a currency-per-instance model (i.e. an item is priced at ₺100, another at $100 etc).
- Convert all prices to a base price (
price_cents_try
here) - Periodically update that field as the exchange rates are updated
- Simpler to implement
- Better query performance (no script filter)
- The cron job can become unwieldy if there are lots of records and/or the update frequency is high
- Use script fields and script filter (
Option 2
part in the code).
- No need for a cron job
- Needs scripting enabled
- Possible performance degradation