Tech TutorBangla Web Documentation
Portfolio
HomeHTMLCSSTailwind CSSJavaScriptTypeScriptReactNext.jsNode.jsExpressSocket.IOExpoWordPressPostgreSQLPrismaPostgresNestJSMongoDBDockerTanStackTanStack TableRTK QueryGitGitHub
  • PrismaPostgres Documentation40টি অধ্যায়
প্রযুক্তি নির্বাচন
HomeHTMLCSSTailwind CSSJavaScriptTypeScriptReactNext.jsNode.jsExpressSocket.IOExpoWordPressPostgreSQLPrismaPostgresNestJSMongoDBDockerTanStackTanStack TableRTK QueryGitGitHub
  • Prisma Intro
  • Prisma vs Raw SQL
  • Setup & Install
  • Schema Basics
  • Models
  • Relations
  • Migrations
  • Prisma Client
  • Create & Upsert
  • Read Queries
  • Update & Delete
  • Query Filters
  • Sort & Pagination
  • Select & Include
  • Nested Writes
  • Transactions
  • Aggregation
  • JSON Fields
  • Raw SQL
  • TechShop Schema
  • TechShop Seed
  • Relations Advanced
  • Env Config
  • Global Client
  • Next.js + Prisma
  • Express API
  • Error Handling
  • Performance
  • Connection Pool
  • Prisma Studio
  • Deploy Migrations
  • TechShop Indexes
  • TechShop Cart
  • TechShop Stats API
  • Schema Evolution
  • Debugging
  • Common Mistakes
  • Best Practices
  • Interview Questions
  • Recap & Next
  1. Docs
  2. PrismaPostgres
  3. Prisma & connection — serverless চ্যালেঞ্জ
PrismaPostgresAdvanced

Prisma & connection — serverless চ্যালেঞ্জ

PostgreSQL connection বেঁধে রাখা — scale-এ বুদ্ধি।

4টি অংশবাংলা ভাষায়
  • Prisma engine-এর connection_limit — default (≈ CPU-ভিত্তিক)
  • max_connections Postgres default 100
  • Serverless — প্রতি invoke এক client → pool burn
  • PgBouncer (transaction mode) / Supabase-RLS দক্ষ
limit নিয়ন্ত্রণts
ts
const prisma = new PrismaClient({
  datasources: {
    db: { url: process.env.DATABASE_URL },
  },
});
Setupউপায়
Long-lived serverglobal singleton, pool default
Serverless per callsingleton + connection cap
High concurrencyPgBouncer + DATABASE_URL ঢাল
too many connections

too many clients/FATAL-র সঙ্গে balance — pool-limit ও DATABASE_URL-এ bouncer ঠিক করুন।

শেষ প্যারায় নিজে practice করুন — কোড কপি করে নিজের এডিটরে চালিয়ে দেখুন।
আগেরClient-optimization — দ্রুত queryপরেরStudio — GUI-তে data দেখুন
Tech Tutor

বাংলায় ওয়েব ডেভেলপমেন্ট ডকুমেন্টেশন শিখুন — ধাপে ধাপে।

Homeসব ডকুমেন্টেশনQuick Startআমার নোটস

© 2026 Tech Tutor. বাংলায় শিখুন, বাংলায় গড়ুন।

mdanamolhasan1998@gmail.com