
Title.
Trying to import records from another DB. It fails part of the way through and I have no idea why. How to do?
Converted Contact!
Converted Contact!
Converted Contact!
Converted Contact!
Finished converting Contacts.json, created 10082 new contacts
Operation failed: AppwriteException [Error]: Server Error
at Client.call (/Users/zachhandley/Documents/GitHub/aba-app-astro/website/node_modules/node-appwrite/lib/client.js:174:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Databases.createDocument (/Users/zachhandley/Documents/GitHub/aba-app-astro/website/node_modules/node-appwrite/lib/services/databases.js:1691:16)
at async initOrUpdateCollections (file:///Users/zachhandley/Documents/GitHub/aba-app-astro/website/src/api/migrations/collections.ts:1:9611)
at async setupDatabases (file:///Users/zachhandley/Documents/GitHub/aba-app-astro/website/src/api/migrations/setupDatabase.ts:1:839)
at async Object.runMigrations (file:///Users/zachhandley/Documents/GitHub/aba-app-astro/website/src/api/server.ts:1:887)
at async applyMigrations (file:///Users/zachhandley/Documents/GitHub/aba-app-astro/website/migrate.ts:1:490)
at async runCommand (file:///Users/zachhandley/Documents/GitHub/aba-app-astro/website/migrate.ts:1:1175) {
code: 500,
type: 'general_unknown',
response: {
message: 'Server Error',
code: 500,
type: 'general_unknown',
version: '1.4.13'
}
}

that's after meh

5088 contacts or so

so like 8.33 minutes

in theory if my _NUM_WORKERS
ENV var works

then I can be creating functions and mass creating them

honestly, if it's a one-time, functions isn't worth it

personal opinion, function also times out too much to be sure it works well

@Steven

success!

gracias for the idea

also sidebar

there should totally be an equals Query for an object that JSON stringifies it and then does a comparison between all the keys found in the collection that match the keys in the object, and then compares the values for X values to determine if any are a match

cause it's really useful when importing data lol

I was nervous about how many queries though (max 25) so I only used 5

it's funny for how many things you can use a simple table in a database

Ikr

It’s hard to gauge what kinds of limits to set e.g. like

It’s hard to tell how much of some data will be over X characters and what not

yeah

is this solved? :1peek:

yessir

could you mark it as solved? :appwritepeepo:

[SOLVED] Best way to create 10000 records?

yeah valid, was gonna paste my code but I can do that when I finalize the rest
Recommended threads
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
- Relationship null, even when relationshi...
Hi Everyone, im experiencing issues with set relation data. When im setting the document id from the related database most of them seem fine, except one table. ...
- REQUEST FAILED IN MIGRATION
I was trying to moved my archived project to a self-host database . Though the Project is "read only" but there's a message that I can view and migrate data to...
