[{"data":1,"prerenderedAt":339},["ShallowReactive",2],{"news-\u002Fnews\u002Ffast-when-full":3},{"id":4,"title":5,"author":6,"body":7,"date":321,"description":322,"draft":323,"extension":324,"hero":325,"image":326,"meta":327,"navigation":328,"noindex":323,"ogImage":329,"path":330,"seo":331,"stem":332,"tags":333,"__hash__":338},"news\u002Fnews\u002Ffast-when-full.md","I was sure it would slow down at 24 million things. It took 24 ms","Kai Gilb",{"type":8,"value":9,"toc":309},"minimark",[10,20,25,28,31,34,43,47,50,53,124,127,134,137,141,144,150,158,161,165,168,171,177,180,185,192,195,226,233,236,240,243,246,250,287,291,294,304,307],[11,12,13,14,19],"p",{},"In ",[15,16,18],"a",{"href":17},"\u002Fnews\u002Fevery-record-knows-what-it-is\u002F","story 3"," crate 42 got a type. A crate that knows what it is is only useful if you can find it again. So, story 4: what happens to speed when a vault gets full.",[21,22,24],"h2",{"id":23},"anyone-is-fast-on-an-empty-demo","Anyone is fast on an empty demo",[11,26,27],{},"AI is very good at getting an app on screen. Ten records, two users, one crate of sample bananas. Fast.",[11,29,30],{},"Now do the sums for a real farm. Banano Vargas Farm ships 25,000 crates a week. Each crate is scanned three times: at the farm, in Rotterdam and in Oslo. That is 75,000 new records a week, and almost 4 million a year. In six years the farm's vault holds about 24 million things.",[11,32,33],{},"Most apps are tested on day one. The farm lives in year six.",[11,35,36],{},[37,38],"img",{"alt":39,"src":40,"width":41,"height":42},"Bar chart: Banano Vargas Farm's records year by year. 25,000 crates a week, each scanned at the farm, in Rotterdam and in Oslo, is 75,000 new records a week. After year 1: 3.9 million. Then 7.8, 11.7, 15.6, 19.5, and after year 6, 23.4 million.","\u002Fnews\u002Ffast-when-full-1-six-years.webp",1600,1027,[21,44,46],{"id":45},"the-test-same-question-bigger-pile","The test: same question, bigger pile",[11,48,49],{},"So we built the pile. We filled one store with 10,000 things and asked a question. Then we threw it away, filled it with 100,000 and asked the same question. Then 1 million, 2 million, 10 million and 24 million.",[11,51,52],{},"The question was always the same: find the 500 records this app is allowed to see, and get them ready to show. That is the question a real app asks all day. Not \"give me everything\". Give me what I need, and only what I may see.",[54,55,56,69],"table",{},[57,58,59],"thead",{},[60,61,62,66],"tr",{},[63,64,65],"th",{},"Things in the store",[63,67,68],{},"Time to answer",[70,71,72,81,89,96,104,111],"tbody",{},[60,73,74,78],{},[75,76,77],"td",{},"10,000",[75,79,80],{},"17 ms",[60,82,83,86],{},[75,84,85],{},"100,000",[75,87,88],{},"21 ms",[60,90,91,94],{},[75,92,93],{},"1 million",[75,95,88],{},[60,97,98,101],{},[75,99,100],{},"2 million",[75,102,103],{},"23 ms",[60,105,106,109],{},[75,107,108],{},"10 million",[75,110,103],{},[60,112,113,119],{},[75,114,115],{},[116,117,118],"strong",{},"24 million",[75,120,121],{},[116,122,123],{},"24 ms",[11,125,126],{},"2,400 times more things. 1.4 times the time.",[11,128,129],{},[37,130],{"alt":131,"src":132,"width":41,"height":133},"Bar chart: the same question asked of six stores. 10,000 things: 17 ms. 100,000: 21 ms. 1 million: 21 ms. 2 million: 23 ms. 10 million: 23 ms. 24 million: 24 ms. Measured 17 August 2026 on a MacBook Pro M5 Pro with made-up records.","\u002Fnews\u002Ffast-when-full-2-same-question.webp",1067,[11,135,136],{},"I was sure it would slow down. I have built systems for a long time, and I know what happens when the pile grows. I was wrong, and for once I enjoyed it.",[21,138,140],{"id":139},"why-the-pile-does-not-matter","Why the pile does not matter",[11,142,143],{},"Think of the tabs on the side of a dictionary. You do not read from \"aardvark\" to find \"banana\". You go to B.",[11,145,146],{},[37,147],{"alt":148,"src":149,"width":41,"height":133},"Two ways to find one word: on the left, a finger presses one gold tab and the dictionary opens at that place; on the right, the same pages unrolled into one long scroll, read from the start.","\u002Fnews\u002Ffast-when-full-tabs.webp",[11,151,152,153,157],{},"Every record on ",[15,154,156],{"href":155},"\u002F","GilbPlatform"," is filed like that from the moment it is made. When an app asks for crate 42, the server goes straight to it. The other 23,999,999 things are not read. They are not in the way.",[11,159,160],{},"That is why the farm's app can answer as fast in the last week of the season as on the first day.",[21,162,164],{"id":163},"when-the-answer-itself-is-big","When the answer itself is big",[11,166,167],{},"Now the other half, because I promised to tell you what is not done.",[11,169,170],{},"In the same store of 24 million things, we asked a second question: give me every record that mentions Bergen. In our test data that is about 2 million records, and each one has to be checked: may this app see it?",[11,172,173,174],{},"That took ",[116,175,176],{},"1 minute and 42 seconds.",[11,178,179],{},"The store was not slow. The answer was big. Two million records are two million records, in any system. So here is the rule:",[11,181,182],{},[116,183,184],{},"Speed follows the size of the answer, not the size of the vault.",[11,186,187],{},[37,188],{"alt":189,"src":190,"width":41,"height":191},"Bar chart in seconds: one store of 24 million things. Asking for the 500 records an app needs took 24 ms, a hairline at this scale. Asking for every record that matches, about 2 million, took 1 minute 42 seconds.","\u002Fnews\u002Ffast-when-full-3-answer-size.webp",800,[11,193,194],{},"What we have done about big answers since August:",[196,197,198,210,220],"ul",{},[199,200,201,204,205,209],"li",{},[116,202,203],{},"Lists come in pages."," The first page of a list of 1,000,000 records now comes in 8 ms. It took 134 ms before (",[15,206,208],{"href":207},"\u002Fnews\u002Frelease-2026-10-27\u002F","weekly note, 27 October",").",[199,211,212,215,216,209],{},[116,213,214],{},"Page 5,000 costs the same as page 1."," 13 ms instead of 17 seconds (",[15,217,219],{"href":218},"\u002Fnews\u002Frelease-2026-11-03\u002F","weekly note, 3 November",[199,221,222,225],{},[116,223,224],{},"Reading everything works, but takes time."," All 1,000,000 records of one type come back in 4 minutes 24 seconds. Before, it never finished.",[11,227,228],{},[37,229],{"alt":230,"src":231,"width":41,"height":232},"Three bar charts for a list of 1,000,000 records, each with its own scale. The first page: 134 ms before, 8 ms now. Page 5,000: 17 seconds before, 13 ms now. Every record at once: stopped after 10 minutes before, 4 minutes 24 seconds now.","\u002Fnews\u002Ffast-when-full-4-big-lists.webp",1093,[11,234,235],{},"So an app that asks for a page gets it fast. An app that asks for all 2 million at once still waits. That is true on every platform. The difference here is that we measured it, and now you know.",[21,237,239],{"id":238},"what-this-means-for-the-farm","What this means for the farm",[11,241,242],{},"When the scanner in Rotterdam reads crate 42, the app asks for one crate, not every crate the farm has ever shipped. One crate in six years of crates: about the same time as one crate in the first week.",[11,244,245],{},"When the farm wants its numbers for the whole season, that is a big answer. It comes page by page, or the app works it out ahead of time. That part is the app's design, and it is worth thinking about before the season, not in it.",[21,247,249],{"id":248},"what-is-not-done","What is not done",[196,251,252,258,264,270,276],{},[199,253,254,257],{},[116,255,256],{},"These numbers are from August, on my own laptop."," We measured on 17 August, on a MacBook Pro (M5 Pro, 64 GB), with made-up records. Not on the server you would use, and not with real farms.",[199,259,260,263],{},[116,261,262],{},"Production has no vault this full yet."," Our server in Helsinki has not been measured with 24 million things. When it is, I will publish that number, whatever it is.",[199,265,266,269],{},[116,267,268],{},"Past about 45 million things, we have not measured."," At 24 million the whole store still fit in the laptop's memory. A store that does not fit has to read from disk, and that is slower. We have not built that pile yet.",[199,271,272,275],{},[116,273,274],{},"Big answers are still slow."," 2 million matches took 1 minute 42 seconds in August. That case has not been measured again since the speed work in October and November.",[199,277,278,281,282,286],{},[116,279,280],{},"What you feel in the app is more than the store."," On 2 November, a reload of GilbApp still took about 2 seconds before the first row showed, mostly the sign-in check (",[15,283,285],{"href":284},"\u002Fnews\u002Fspeed-lab\u002F","Speed Lab","). Our limit is 1 second, so we are not done there either.",[21,288,290],{"id":289},"next-made-to-last","Next: made to last",[11,292,293],{},"A vault that is fast in year six is worth little if year one has been changed behind your back. Story 5: why every value is filed under its own fingerprint, and nothing gets quietly overwritten.",[11,295,296,297,303],{},"To get the next story, follow ",[15,298,302],{"href":299,"rel":300},"https:\u002F\u002Fmyjackfruit.com\u002Fnews\u002Frss.xml",[301],"nofollow","the News RSS feed",". Want to be among the first to get a vault?",[305,306],"waitlist-button",{},[11,308,6],{},{"title":310,"searchDepth":311,"depth":311,"links":312},"",3,[313,315,316,317,318,319,320],{"id":23,"depth":314,"text":24},2,{"id":45,"depth":314,"text":46},{"id":139,"depth":314,"text":140},{"id":163,"depth":314,"text":164},{"id":238,"depth":314,"text":239},{"id":248,"depth":314,"text":249},{"id":289,"depth":314,"text":290},"2026-11-22","We filled one store with 10,000 things, then with 24 million, and asked the same question each time: 17 ms, then 24 ms. When the answer itself holds 2 million records, it is a different story, and I tell that too. Story 4 of 7.",false,"md","\u002Fnews\u002Ffast-when-full-cover.webp","\u002Fnews\u002Ffast-when-full-cover-og.jpg",{},true,null,"\u002Fnews\u002Ffast-when-full",{"title":5,"description":322},"news\u002Ffast-when-full",[334,335,336,337],"story","speed","scale","ai-built-apps","Hyre-r9pa-5AeXmhnn9_lmDnj_crTQ8uj9py_ACa_R8",1796231284579]