Indexes that actually help: a practical talk
Key takeaways
- Measure before indexing: find the query that dominates time.
- Cover the filter and the sort, in that order.
- Drop indexes nothing reads; they slow every write.
You saved the post that explains exactly the fix you need. With Savewell’s MCP server, your coding agent can find it, read it and use it while it works, without you digging it up and pasting it in.
Savewell keeps the posts, threads, videos and articles you save, each with a summary and key takeaways. Its MCP server lets an AI agent reach that library:
| Tool | What the agent can do |
|---|---|
search_library | Find saves by meaning and by keywords, best match first. |
get_item | Read one save in full: summary, takeaways, tags, folder, link and the text captured from the page. |
ask_library | Answer a question from your saves only, with numbered sources. |
list_folders | See your folders and what belongs in each. |
list_recent | See what you saved most recently, optionally in one folder. |
save_link | Save a new link or note to your library. |
create_folder | Create a folder, with a description of what belongs in it (new saves are filed using it). |
update_folder | Rename a folder, or change its description or emoji. |
move_items | Regroup saves: move them into another folder, or to Unsorted. |
delete_folder | Delete a folder. Its saves move to a folder you choose; they’re never deleted. |
It can’t delete your saves or change what they say, see your password, or see anyone else’s library.




https://bookmarking-app-api.onrender.com/mcp
You sign in with OAuth: when you connect, a browser window opens to sign in to Savewell and approve the agent. There’s no API key to create or paste. Never paste a password or code into a chat with an AI.
Run this in your terminal:
claude mcp add --transport http savewell https://bookmarking-app-api.onrender.com/mcp
Then, in Claude Code, type /mcp, choose savewell and Authenticate. Approve it in the browser window that opens.
Add this to .cursor/mcp.json (or under Settings → MCP), then click Connect next to it:
{
"mcpServers": {
"savewell": {
"url": "https://bookmarking-app-api.onrender.com/mcp"
}
}
}
Open Settings → Connectors → Add custom connector, paste the server address, then Connect.
Start with EXPLAIN (ANALYZE, BUFFERS) on the slow query, then add a composite index with the equality filters first and the time range last 1 2. For heavy charts, read from a rollup table instead of raw events 3.
How we cut Postgres p95 from 900 ms to 40 ms with one indexThread · x.com
Indexes that actually help: a practical talkTalk · youtube.com
Rollup tables for fast analytics dashboardsArticle
Mara Lyu @mara_builds · 2h
We cut our Postgres p95 from 900 ms to 40 ms with one index. No new hardware, no cache layer. Here’s the whole story.
ReplyRepostLikeShare
Everything your agent reads is something you saved: shared from your phone while scrolling, or pasted on the web. Each save is read and summarized in the background, so the agent gets the takeaways, not just a link.
In Savewell, open AI agents (from the sidebar on the web, or from your account on the phone). It lists every connected agent, and you can disconnect any of them there.
You need a Savewell account with some saves in it. Share posts from Instagram, X, TikTok or any app on your phone, or paste links on the web.
Key takeaways
Share from any app. Get the key takeaways, filed in your folders. Search and ask it at work.