Tom MacWright
@macwright.com
2 months ago 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
💬 1
♻️ 0
❤️ 4
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.
Didn't get a chance to check out our MCP live demo yesterday?
No worries! We just launched a new series with everything you need to get started, from configuration to workflows.
Watch now -> directus.io/tv/directus...
We've made it easy to migrate from Postgres.
Our new Postgres → PlanetScale migration guides include scripts for automating the process, helping you quickly unlock the performance and scalability of Metal.
planetscale.com/docs/vitess/...