jordorama
I remember reading the documention and it stating a max array length for Query.equals(key, array)
but now I cant find it.
I was trying to query 100 items in the array but was getting an error related to array lengths.
Is there an upper limit to the length of the array?
TL;DR
I'm trying to run a query on a large array of data, but I keep getting an error saying the query exceeds the maximum length. How can I fix this?
Reply 1: The maximum query length limit is usually set by the server. You can try changing the server settings to increase the maximum query length.
Reply 2: Alternatively, you can split the query into smaller chunks and execute them separately. This way, you can work around the maximum query length limitation.
Reply 3: Another approach is to use pagination to retrieve the array data in smaller batches rather than querying the entire array at once.
Solution: To fix the Drake
yes, 100 as the error indicates
Drake
well....it's 100 queries...where each query has a max string of 4096 chars (because the query gets converted to a string like:
TypeScript
equal("attribute",["val1","val2"])
Recommended threads
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.
- Seed db
hello there... is this correct way to seed appwrite
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?