
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
- Error 1.7.4 console team no found
In console when i go to auth, select user, select a membership the url not work. Only work searching the team. It is by the region. project-default- and i get ...
- functions of 1.4 not work on 1.7
Hi, i updated of 1.4 to 1.7 but the function not work i get it error. Do I need to build and deploy the functions again?
- Login Error 500
Hey i have that Problem, i upgrade to the latest version and now i have this error but only on my custom domain not the main domain.. when i try to login
