Loading video...

Video Failed to Load

Go Home

Just opened a 1,000,000-line SQL file. Smooth scroll. Full IntelliSense. Zero lag. Pure Rust 🦀 No Electron. No Tauri. Drops soon with Postgres 👇

50,442 views • 2 months ago •via X (Twitter)

64 Comments

José Gurruchaga's profile picture
José Gurruchaga2 months ago

Gpui is insane, zed doing the lord’s work

Antfroze's profile picture
Antfroze2 months ago

YES 🙌

Antfroze's profile picture
Antfroze2 months ago

I don't think there is another editor that can do this

Sahith's profile picture
Sahith2 months ago

Why the F do you have a 1M line SQL file?

Antfroze's profile picture
Antfroze2 months ago

Valid reaction 😂 They do exist somewhere out there

Json's profile picture
Json2 months ago

Good to see people use the right technologies for such tools. Great job!

Antfroze's profile picture
Antfroze2 months ago

Thank you 🙏 gpui truly is insane

Robert E. Beckner III (Merlin)'s profile picture
Robert E. Beckner III (Merlin)2 months ago

Legend! Nice moves!!

Antfroze's profile picture
Antfroze2 months ago

Thank you 🙏 Much appreciated

Vishnu Dileesh's profile picture
Vishnu Dileesh2 months ago

Looks performatively neat

Antfroze's profile picture
Antfroze2 months ago

Thank you 🙏

samyak's profile picture
samyak2 months ago

@AstraKernel Great work! GPUI definitely is great for such performance usecase. I have a question though, is GPUI better choice than Tauri for software like postman, accounting ?

Antfroze's profile picture
Antfroze2 months ago

@AstraKernel Thank you 🙏 If you are up for it, I would recommend using GPUI over Tauri. So many issues came out of Tauri for me, the current version available on the website is built with it

keiko's profile picture
keiko2 months ago

why would i switch to this from dbeaver?

Antfroze's profile picture
Antfroze2 months ago

DBeaver did this to me after trying to replicate the video

keiko's profile picture
keiko2 months ago

try opening in zed

Antfroze's profile picture
Antfroze2 months ago

I did, it struggles to keep up with highlighting (because treesitter) and also there is no good autocomplete for SQL anywhere but in SQL Studio & DataGrip. It's not a fair comparison

星川 ✨ StarFlow's profile picture
星川 ✨ StarFlow2 months ago

这也太丝滑了,这就去试试

Antfroze's profile picture
Antfroze2 months ago

Thank you! The version seen in the video isn't out yet but will be soon :)

law's profile picture
law2 months ago

Can feel Zed's UI library from a mile away

Antfroze's profile picture
Antfroze2 months ago

GPUI for the win 🏆

Mother Brain ⋈🇵🇹's profile picture
Mother Brain ⋈🇵🇹2 months ago

@late4nothing Any GPUI framworks you favor? I've seen a lot come from Zed's, like

Antfroze's profile picture
Antfroze2 months ago

@late4nothing I made my own, but if I were to use one I would make sure it is unstyled

Safwan's profile picture
Safwan2 months ago

excited for this cuz i look at sql dumps often lol

rusa's profile picture
rusa2 months ago

a million lines with intellisense and no lag is the demo that matters. that is exactly where electron editors fall over.

Antfroze's profile picture
Antfroze2 months ago

Very true, though most people won't have files this big or bigger - keeping it smooth ensures any workload will be

akshay oppiliappan's profile picture
akshay oppiliappan2 months ago

gpui?

Antfroze's profile picture
Antfroze2 months ago

Yes 🙌

Buswe's profile picture
Buswe2 months ago

Que sea Rust nativo sin webview es justo lo que deja virtualizar el render y mover un millón de líneas sin lag.

Antfroze's profile picture
Antfroze2 months ago

Very true in this case 🙌

Vikrant Guleria's profile picture
Vikrant Guleria1 month ago

The real test for a SQL editor at this scale isn't rendering, it's whether it can run EXPLAIN ANALYZE on a query against a huge Postgres table and keep the UI responsive while the plan comes back. Curious if streams query results incrementally or waits for the full result set before painting.

Tts's profile picture
Tts2 months ago

who has 1M lines sql file?

Antfroze's profile picture
Antfroze2 months ago

Me and many others (most likely) 🙌

Sebastian Buzdugan's profile picture
Sebastian Buzdugan2 months ago

million-line rendering is easier than keeping incremental parsing fast after edits

Antfroze's profile picture
Antfroze2 months ago

Very true, mine does both 🙌

Arik Chakma's profile picture
Arik Chakma2 months ago

did you move to gpui by any chance?

Antfroze's profile picture
Antfroze2 months ago

Yep 👍

Arik Chakma's profile picture
Arik Chakma2 months ago

crazy 🫡

Rahul Rajaram's profile picture
Rahul Rajaram2 months ago

What’s are performance numbers like on the file system (and disk if you’re using HDD)? Naiively, I would think this has the ability to trigger a lot of syscall activity upon frequent abrupt cursor pos changes. Should apply to Sublime Text similarly though.

Antfroze's profile picture
Antfroze2 months ago

Cursor moves and typing don't hit disk. The file is already in memory. Disk only comes into play on open/save

nik's profile picture
nik2 months ago

gpui?

Antfroze's profile picture
Antfroze2 months ago

Yes 🙏

Antfroze's profile picture
Antfroze2 months ago

It's too good, had to rewrite in it once I built a nice UI library

आशीष खरे's profile picture
आशीष खरे2 months ago

Beautiful

Antfroze's profile picture
Antfroze2 months ago

Thank you 🙏

आशीष खरे's profile picture
आशीष खरे2 months ago

Been a fan since you put up the very first tweet for with only the email bar. It's the most beautiful UI I've ever used.

Antfroze's profile picture
Antfroze2 months ago

Thank you 🙏 it means a lot to me. The new version is completely redesigned and faster in every way. Excited for you to try it :)

Antfroze's profile picture
Antfroze2 months ago

By completely redesigned I mean improved btw it keeps the same soul

आशीष खरे's profile picture
आशीष खरे2 months ago

I'll update to newer version.

Antfroze's profile picture
Antfroze2 months ago

It will be out soon :)

Sora's profile picture
Sora2 months ago

1 Million Lines better not be lagging, or you actively do stuff you shouldn't be doing. This is also the absolute bare minimum.

Antfroze's profile picture
Antfroze2 months ago

It should be the bare minimum but editors usually can't keep up with this in many ways. Whether that be intelisense, syntax highlighting, or find & replace or all of them combined hahaha

Sora's profile picture
Sora2 months ago

Syntax highlighting is not that expensive if you don't need semantic information like in tree-sitter. Intellisense should be done through a fully separate thread anyway and also only has some information about hierarchy...

Droid's profile picture
Droid2 months ago

Are there plans for MySQL support?

Antfroze's profile picture
Antfroze2 months ago

Yes :)

SyntaxError » CEO of "CEO of..."-names's profile picture
SyntaxError » CEO of "CEO of..."-names2 months ago

wdym 1000000 SQL file

Antfroze's profile picture
Antfroze2 months ago

1 million lines, smooth and seamless just like 100 or 10 lines

Rajat Kulkarni's profile picture
Rajat Kulkarni2 months ago

GPUI I’m assuming? Seems like the new hype! Unfortunately can’t migrate @tryOctarine due to the editor becoming incompatible

Antfroze's profile picture
Antfroze2 months ago

@tryOctarine Yep 👍 it was a harsh migration but very worth it for me. Tauri was holding me back too much, once I prototyped with it I knew I had to continue

Aditya 👀's profile picture
Aditya 👀2 months ago

Why would you make a million line sql query anyways 😭

Antfroze's profile picture
Antfroze2 months ago

SQL dumps / autogenerated migrations, or some other reason. It's good to have an incremental parser / editor that is capable enough to handle any workload

Aditya 👀's profile picture
Aditya 👀2 months ago

alright makes sense, I remember digging through a migration in raw sql file once

Andi Liu's profile picture
Andi Liu2 months ago

没有AI,我们真的能处理得了1,000,000 行的 SQL 文件吗?如果有了AI,我们真的有必要处理1,000,000 行的 SQL 文件吗?

rusa's profile picture
rusa1 month ago

the trick with a million lines isn't rust specifically, it's never touching the whole file at once, virtualized rendering for what's visible plus a rope or piece table for edits. native mostly buys you a small constant factor on top. what's backing the intellisense at that size, incremental parse.

Related Videos

Your agents can't keep up with real-time data. Especially when it's scattered across dozens of sources. Most teams waste weeks building custom connectors for every database, API, and data warehouse. Then they build ETL pipelines to sync everything. By the time your agent retrieves the data, it's already outdated. Picture this: Your Postgres database updated 5 minutes ago. Your MongoDB collection changed 2 minutes ago. Your agent is still pulling from yesterday's snapshot. This is why most production RAG systems fail. There's a better approach: MindsDB is an open-source AI platform with a federated data engine that lets you query multiple data sources in real-time using SQL - without moving any data. Here's what makes it different: ↳ Your data stays in place. No ETL pipelines or data duplication ↳ Query Postgres, MongoDB, REST APIs, and more using consistent SQL ↳ JOIN across different sources in real-time with a unified interface ↳ Works with both structured and un-structured data And here's the best part: You don't even need to write SQL. Just describe what you want in plain English, and MindsDB converts it to SQL automatically. The system does all the heavy lifting. The breakthrough for AI agents is simple: When data updates at the source, your agent gets fresh results immediately. No sync delays. No stale embeddings. No custom code for each integration. You can literally write a SQL query that joins a Postgres table with a MongoDB collection and gets live results. This is what production AI applications need but rarely get. In this video, I give you a complete walkthrough of what we just discussed and how to actually do it. Make sure you watch this till the end. I've shared the link to MindsDB's GitHub repo in the next tweet!

Akshay 🚀

65,672 views • 11 months ago