DT
Drizzle Teamaleemrehmtulla
neon coldstarts in vercel edge
hey!! if my neondb is in
idle
state, and i try to query something -- it will error out.
- error node_modules/@neondatabase/serverless/index.js (1527:67) @ eval
- error error connecting to server: Connection refused (os error 111)
Caused by:
Connection refused (os error 111)
then if i try again after it's active -- works all good
how can i write it in a way to wait for db to activate?
context:
neonConfig.fetchConnectionCache = true
const sql = neon(process.env.DATABASE_URL!)
export const db = drizzle(sql)
const test = await db.select().from(kyteProd).where(eq(kyteProd.username, id)).then(takeFirst)
(same happens without fetchConnectionCache
)A
aleemrehmtulla•302d ago
seems to work with a directurl, but not with the neon pooler flag in url (with our without pgBouncer in query)
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.3KMembers
View on DiscordWant results from more Discord servers?
More PostsHow to create GIN/GIST index on text[] column?According to some issues this is not implemented or buggy
- https://github.com/drizzle-team/drizzle-Module '"drizzle-orm/mysql-core"' has no exported member 'unique'.ts(2305)Getting this error when trying to import `unique`
```typescript
import {
text,
unique, // erroriIs there a way to set the index operator type for postgres?I'm migrating our project to drizzle, and I want to add the indexes to the table.
Previously we wereHow to update multiple rows with one query?Take this array as an example:
```ts
const data = [
{id: 1, col1: "col1 data where id = 1"}
{id: