Prisma
@prisma.io
about 1 year ago 🎊 Our LLM-friendly Prisma docs are now featured on llmstxt.site, a curated directory of LLM-friendly documentation.
🔗 llmstxt.site
💬 1
♻️ 0
❤️ 4
🎊 Our LLM-friendly Prisma docs are now featured on llmstxt.site, a curated directory of LLM-friendly documentation.
🔗 llmstxt.site i use AI "a little bit" (windsurf to write aws junk, chatgpt for silly questions) and it's not terrible, it's fairly good. if i could look at it in isolation i'd probably be more positive about it. but boy, *gestures at everything* how does anyone look at anything in isolation, like how
top quote is from fly.io/blog/youre-a... and it's a good reasonable article from a smart person i respect, and honestly i wish i had a little more of the enthusiasm for ai companies are not legally required to maximize profits (that's misinfo) and people are not legally required to maximize their short-term productivity if it feels terrible!
sometimes when i'm having the inevitable Do You Use AI conversation i say something like "it would make me more efficient but it also makes me very sad so I don't do it" and that is, like, a very straightforward and defensible position imho!
let me be clear, doing things out of spite is a perfectly fine reason to do things
You can also join the conversation on Discord.
Drop your questions in the `dev-ama` channel and talk to us live during the session 👇
pris.ly/discord/ama... 📢 3 days to go until our next Prisma AMA!
Got questions for the team? We’re live on June 5 at 5PM CEST.
Streaming on YouTube, Discord and X 👇
pris.ly/yt/ama-june5 for the last year or so, every time i land on someone's blog i subscribe to it immediately. it's been entirely good, most people post sporadically but post good things. i recommend it.
To sum up the thread:
✅ Batch writes
✅ Collapse nested queries
✅ Prefer array transactions
Fewer operations = cleaner code + smaller bill.
Read our blog on operation-based billing for more details 👇
pris.ly/ops-pricing... 3️⃣ If the queries don’t depend on each other, don’t use an interactive transaction.
Interactive transactions = more control, but more operations.
Use them only when needed (like if you need a value from a previous query). 2️⃣ Need to create or connect records in one operation?
Use Prisma ORM-specific nested-relation helpers such as `connectOrCreate` or `set` to create or link related records in a single operation. 1️⃣ Used batched queries instead of looping DB calls.
💡 Use createMany, updateMany, deleteMany to batch work into a single request.
e.g, For the query below, it'll be 1 operation, not 3 👇 👀 Are you a Prisma Postgres user?
Here are 3 quick tips to write smarter queries and optimize your operation count 🧵 Also try out rolldown-vite in your Vite projects and share your feedback!
✋ vite@7.0.0-beta.0 is out!
- Browser Target Changed to Baseline Widely Available
- Node 18 support dropped. Vite is now distributed as ESM only
Plus fixes and deprecated feats removals, preparing for rolldown. Help us test the beta and report back 🙏
github.com/vitejs/vite/... 🤔 Need a robust connection pool for your Neon database?
🚀 Check out our step-by-step guide showing how to add Prisma Accelerate to PostgreSQL on Neon for blazing fast responses in your serverless apps!
pris.ly/guide/neon-cp Flying to SF this week to attend / speak at @swyx.io’s ai engineer conference. I’ll be around, DM me! 🙌
Bicycle habitat, king kog, and ride brooklyn all have pretty good reputations!
Bonus point for recording a little 5min video demo of your most proud work showcasing a focus on details, performance and accessibility. 🙏
Looking for an experienced frontend developer for a very interesting contract project (related to AI and LiveStore). Please get in touch via DM with references. (Ideally minimum of 5 years of experience.) Referrals welcome!
🎓 What does Stale-While-Revalidate (SWR) mean when caching DB results?
When you set SWR, results will be served from the cache for the specified time. Also: for every cache hit, a new DB query is triggered and the cached data is "refreshed" & the SWR timer is reset.