Hi, I have a question about wix data query. Instead of doing query loop and concatenate the results, I did a loop for the query itself. The reason why I did this was I wanted to keep it one query so I can utilize the queryResults.next for loading more. My code looks like this
let brandValues =$w("#brandFilter").value;
if (brandValues.length!==0){
for (var i = 0; i < brandValues.length; i++) {
if (i === 0) {
brandQuery = wixData.query("db").eq("brand",brands[brandValues[i]]);
} else {
brandQuery = (brandQuery).or(wixData.query("db").eq("brand",brands[brandValues[i]]));
}
console.log(brandQuery)
}
}
I have a checkbox list called brand filter, and I use it to filter different brands. It works great if I select up to 4 brands, and then starts giving me a WDE0028: Request timed out. error.
Any suggestions would be appreciated!