Hey, I want to migrate from Self Hosted to AppWrite cloud, but I have arround 20k users but the migration tool only shows 5000 users
Yes, Appwrite only counts a maximum of 5000 Documents when calling listDocuments() (internally, Users is just another Collection). I would expect it would still get all of them? But I’m not 100% sure how Migrations work.
yep, we use cursor based pagination to fetch everything: https://github.com/utopia-php/migration/blob/f78273b38bade23db5866e5c7cb5f55427ba82af/src/Migration/Sources/Appwrite.php#L310
it would be great if you could create a github issue for this. We should clarify this to show 5000+ or something like that
That's right, it infact processed all the users despite only showing 5000
Should do something like this for general API responses, too
Total is a number so returning a string like 5000+ in some cases can be problematic
Of course. I’ve been trying to think of what could be returned if it’s over 5000. I thought of perhaps -1, but I feel like that might create other issues? But I can’t quite put my finger on what.
Recommended threads
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- 408 Timeout / Curl Error 7 in Executor w...
Hey everyone, I am losing my mind over a routing loop/timeout issue on a fresh self-hosted setup. I have a single Linux VPS (IP: 45.141.37.105) and one domain (...
- functions returning error 401 in local
I updated to 1.9.0, and the functions that used to work fine in 1.8.1 are now giving me a 401 error. I can't seem to find a solution. If anyone is running versi...