Back

[SOLVED] What's the best way of inserting 17500 documents at once?

  • 0
  • Databases
  • Cloud
memoonlite
21 Nov, 2023, 18:49

Hello everyone! πŸ‘‹πŸ»

For a (hobby) project I'd like to add 17500 documents to a collection. This is a one time thing. I tried to do it by using a Cloud function and executing it, but I'm being rate limited fairly quickly (understandable).

Since I'm using Appwrite Cloud, I cannot set _APP_OPTIONS_ABUSE as far as I know.

My question now is: How can I add these documents without being rate limited?

TL;DR
The user wants to know the best way to insert 17500 documents at once without being rate-limited. No solution is provided in the thread.
memoonlite
21 Nov, 2023, 18:52

Solved.

D5
21 Nov, 2023, 18:52

What was the solution?

D5
21 Nov, 2023, 18:52

PS: no need to delete everything πŸ˜…

Ernest
21 Nov, 2023, 18:54

Now, I really want to know what was solved

D5
21 Nov, 2023, 18:54

Top secret

Ernest
21 Nov, 2023, 18:54

Lol

D5
21 Nov, 2023, 18:54

@memoonlite Closing this

memoonlite
21 Nov, 2023, 18:55

What's the best way of inserting 17500 documents at once?

D5
21 Nov, 2023, 18:56

[SOLVED] What's the best way of inserting 17500 documents at once?

memoonlite
21 Nov, 2023, 18:56

I restored my post. 😊 It was a stupid mistake, I thought it's the best not to bother anyone with it.

memoonlite
21 Nov, 2023, 18:57

I forgot to attach the API key to my function. πŸ‘Ž

D5
21 Nov, 2023, 18:58

Oh, It happened to me once too πŸ˜†

memoonlite
21 Nov, 2023, 18:58

I tried to batch insert documents but I forgot to attach the API key to my function. 😊

D5
21 Nov, 2023, 18:59

No worries. We prefer to have posts with the solution so people searching for similar solutions find them πŸ˜„

memoonlite
21 Nov, 2023, 19:00

Indeed, it's easy to make a small mistake! I'm glad it's working correctly now. πŸ‘

D5
21 Nov, 2023, 19:00

Yes, glad to hear!

D5
21 Nov, 2023, 19:01

Adding to this: if you want privacy, you can delete it, we respect the decision too πŸ˜… But obviously it's more beneficial for the community the first option

D5
21 Nov, 2023, 19:02

Closing this since it's solved. Thanks @memoonlite for sharing it :appwriteheart:

memoonlite
21 Nov, 2023, 19:02

True, but I felt a bit silly after I found out my mistake. πŸ˜‚ Either way: Thanks everyone for the replies in this tread. πŸ‘

D5
21 Nov, 2023, 19:03

Well, this could happen to anyone, even people with more experience. In fact as said, happened to me 🀣

memoonlite
21 Nov, 2023, 19:04

No, it's fine to keep the post. πŸ‘ It might help someone in the future. I use the search function myself here on Discord a LOT as well and it helps me to find an answer to my question most of the time.

Drake
21 Nov, 2023, 19:05
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more