This complex query makes the server cpu run at 100%.
{% set entries = craft.entries({
section: sectionParam,
search: searchParam,
relatedTo: relatedToParams,
condition: conditionParam,
price: [
'and',
'>= ' ~ pricesParam|split(';')[0],
'<= ' ~ pricesParam|split(';')[1]
],
priceOffer: [
'and',
'>= ' ~ pricesParam|split(';')[0],
'<= ' ~ pricesParam|split(';')[1]
],
specsMtplm: weightParam,
specInternalLengthFeet: lengthParam,
priceOffer: '',
specsBerthSleeps: [
'and',
'>= ' ~ berthsParam|split(';')[0],
'<= ' ~ berthsParam|split(';')[1]
],
spectransmission: transParam,
seatbelts: seatbeltsParam
}).order('dateCreated desc').limit(null) %}
How can I optimise this twig so it doesn't kill the server each time it runs?