My Wix data queries worked just fine until I doubled my database size to about 150,000 records. Now I pretty regularly get the error message (WDE0028: Request timed out.) Standard query below:
var results = await wixData.query("ResidentialMasterList")
.eq("PostalCode", zipcode)
.eq("StandardStatus","A")
.limit(200)
.find()
What does this error code mean, and what are the recommended solutions?
Same results. I’m curious if it’s a timeout issue, or multiple threads hitting the same database. I’m using multiple async calls to the same database within the function (get a subset of the data to analyze, then iterate through that subset and make more calls to the database for relevant rows). I’ll try changing all the async calls to a then() chain.
Interestingly, when I navigate to the collection via the Editor, my site logging shows “Unknown Error” while the collection attempts to load.
I’ll also try implementing retry logic and hope that clears this up.
After some testing and forum diving, it looks like I should have had more robust retry logic for my queries on the client side (i.e. not expect wix-data to handle it all). Excited to share that this change seems to have solved the problems! My queries now look something like this:
Regarding your code → i still do not understand how your code works!??
The max. limit of a query as we all know is → 1000 (o.k.-checked)
You also have setted-up the limitation.
But how are you able to get more then 1000-items out of your DB, since you are not using → .skip() in any part of your code?
From the UeberMaster (Giedrius) himself: “WDE0028 will usually indicate and expensive query that took longer to run.”
So I think I can explain why the above works:
the query is expensive and times out
it generates an error
any error triggers a retry
4)but, by now, during the first query, database token has already been generated and containers are spinning (warm load)
5)just because of 4, the retry now works, by sheer luck