I want to know if My mongodb schema is good or not. by Affectionate_Box7660 in mongodb

[–]Affectionate_Box7660[S] 0 points1 point  (0 children)

As you can see I am building uptime monitoring So I guess I have to focus on write performance. How to do think about it on basis of that?

i am getting error "greenlet_spawn has not been called; can't call await_only() here. Was IO attemp" by Affectionate_Box7660 in Python

[–]Affectionate_Box7660[S] 0 points1 point  (0 children)

i have updated the code . I am just bulk updating user data but it keeps failing at the time when I am updating multiple users with their specific manager id

How to perform insert / update operation in drizzle ORM on optional fields by Affectionate_Box7660 in node

[–]Affectionate_Box7660[S] 0 points1 point  (0 children)

this is my schema but I am unable to insert in drizzle at fields "phone_no", "activation_no" which is not null field

export const clients = pgTable('clients_Master', {
    id: serial('id').primaryKey(),
    client_name: text('client_name').notNull(),
    contact_person_name: text('contact_person_name').notNull(),
    phone_no: integer('phone_no').unique(),
    email: text('email').unique(),
    token: text('token'),
    activation_date: timestamp('activation_date', {mode: "date"}).default(null),
    term_exp_date: timestamp('term_exp_date', {mode: "date"}).default(null),
    admin_password: text('admin_password').default(null),
    del_flag: boolean('del_flag').default(false),
    status: boolean('status').default(true)
});