Robi makes stuff – Telegram
Robi makes stuff
2.7K subscribers
4.16K photos
275 videos
46 files
1.38K links
I don't really know what im doing, but sometimes i make stuff.
This is basically the saved messages of my life.

https://news.1rj.ru/str/boost/Robi_makes_stuff

Season 2 Episode 4

My portfolio : https://robi.work
@rb_wk
Download Telegram
notion calendar dies when you have at least 4 calendar accounts 😂
While doing research for chapi's 100M rows challenge , i found this neat http load testing tool and its FOSS

https://k6.io/open-source/

https://github.com/grafana/k6
🔥7👍61
Mongodb could never
This media is not supported in your browser
VIEW IN TELEGRAM
this is NOT good for my ssd 😂
🤯1
100M row writes with a fairly complex schema takes 16m 40s

db size is 6.35GB pure data and 8.4GB with indexes

thats a 2.05 GB index !!
🤯8
I cant even select * from without crashing my pc.
🤯4
takes 5 secs to count the rows and with limit 1000 , you can actually read fairly fast
😐
Please open Telegram to view this post
VIEW IN TELEGRAM
batch insert latency goes up with every additional row and insert rate is sort of plataueing at 100k per sec
fun fact , indexes don't always make your queries faster 😂

also the more cores your pc has ( physical not logical ) , the more workers psql can have on your query at a time

the query returns 2m rows out of the 100m btw
😭2
this is so fun , lowkey havent had this much fun learning something in a while

he says at 5 am 😂
6😁1
i got my query to run at 2.3 s instead of 11s
trying to finish with hardware and config optimizations before i start on shape and index based optimizations
🔥5
im gonna call it a day now and go gym

day 1 summary :
100M row seed noscript
indexes
system tuning
9 sec optimize on 2m fetch out of 100m rows

tomorrow :
query optimization
shape optimization
partitioning

p95 for a single client 8.3s -> 3.2s ( still horrible but hey a step in the right direction )
👏4
OMG my first ever sponsor
i shall remember this fr 🥰.
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
2🥰34👏136🔥411
Robi makes stuff
im gonna call it a day now and go gym day 1 summary : 100M row seed noscript indexes system tuning 9 sec optimize on 2m fetch out of 100m rows tomorrow : query optimization shape optimization partitioning p95 for a single client 8.3s -> 3.2s ( still…
lets start tweaking the data structure and think about shape and indexes + what the features will be

this is what im starting with , a heatmap app that tracks how the user uses your app, every x ms the client would basically recocrd the x and y position of the user's mouse , and then record it for that screen.

it would make for a nice vis but i doubt itll actually give value so im just brainstorming and pivoting if needed
4👍1
Honestly i would love it if i could use this time to rewrite some parts of odit as well , since transactions & sms are technically something that can reach 100m rows.

but its a question of time and scope 😂.
8