Two users sign up as "José". Your app may accept both.
One stores é as 1 character, the other as e + an accent mark. Same on screen, but "José" === "José" is false in code.
Fix: normalize before you store or compare.
s.normalize("NFC")
@colinhacks nice. have you measured the check on bulk inserts? it runs the schema per row, so i'm curious how much it adds on a 1M row COPY compared to a plain jsonb column
@dwisiswant0 worktrees already share one .git, so the savings here are all checked-out files and build output. history is the other half of repo size. i deleted a 50 MB file in the very next commit and a fresh clone still pulled 50.02 MiB
@arpit_bhayani the interest is there from what i see. my 2 best linkedin posts are database benchmarks, duckdb vs postgres (57k) and duckdb vs clickhouse (32k). what people skip now is the generic explainer they can ask ai for. stuff you measured yourself still travels
@jamesacowling saw a small version of this last week. same 8 cores, same data: one DuckDB process answered 16 concurrent clients faster than a ClickHouse server, 17.9 vs 10.6 queries/s. the server only won once 8 separate apps had to write at the same time
@tanujDE3180 one more for the list: normalize the name first. "josé" can be stored 2 ways that look identical, é as 1 character or e + an accent mark. the check says the name is free and you get 2 users with the same name. NFC on the way in, then the unique index does its job
@devXritesh A and B both work, the difference is the edge case. if everyone earns the same, the MAX subquery returns NULL and DENSE_RANK returns no row at all. pick the one your caller expects. with an index on salary the MAX version is just 2 index lookups
@Creatives_Rule notes after the call got copied first because they're the easy part. what is actually useful on calls is the proactive part: CatchMeet checks what's said against my docs and shows the answer before I think to ask. keeping the conversation pace. that's a lot harder to clone
@prince_abumoye@innocent_uzzy@AskMichaelTaiwo or skip the bot entirely: whoever wants notes uses something that runs on their own machine (CatchMeet, or smth like this). nothing joins the call, so no 3rd party gets the guest list or emails everyone a summary
@petergyang@vivek7ue@Snowflake for me the next bottleneck after code was calls. clients ask about a past decision and the answer sits in a doc nobody opens mid-call. I keep CatchMeet open for that now
@milesdeutscher the notes help me most during calls, not after. I keep my project docs in CatchMeet and the right one shows up on screen while the client is still talking. https://t.co/fSqgjzhBFD
@MrGaggi the participant part is why I don't use these on client calls. I use CatchMeet instead: nothing joins the call, the answers from my docs just show up on my screen. https://t.co/fSqgjzh3Q5
@mojunel the scorecard skips the part I care about on client calls: nothing joining at all. I use CatchMeet for that, it runs on my side and shows answers from my docs during the call. https://t.co/fSqgjzhBFD
how I measured it: a --require hook that logs every file read and require under node_modules/next. then next start with 2 pages and an API route, and a full next build. sizes are file bytes, not du
I wanted to know how much of Next.js actually runs.
A fresh Next.js 16 app installs 323 MB of node_modules. The next package is 192 MB, and half of that is source maps.
I logged every file Node opened from it:
next start: 3.6 MB (1.9%)
next build: 13.3 MB (6.9%)
where the rest goes:
- the page runtime ships 8 times: dev/prod, webpack/turbopack, stable/experimental
- 475 docs files are bundled inside the package
for Docker, output: 'standalone' copies 45 MB. 28 MB of that is sharp, the image library, even though this app has no <Image>
@Pallavi_345 depends where the id gets made. auto-increment needs one db handing out numbers, so it gets hard once you shard. uuid v4 scales writes but random keys split index pages and bloat them. uuid v7 is the middle: made anywhere, still time-ordered
@peaklabs_dev nice. the thing people hit right after going to replicas: anything kept in memory (sessions, rate limits, websocket rooms) is now per replica. sticky sessions hide it until one of them restarts
@iinegveam@Sumits_X agree on connect. the code that runs queries usually shouldn't decide when a connection opens, a pool hands it a ready one. and yeah, for a quick script one class is fine. the split pays off once you start mocking it