zlacker

[parent] [thread] 5 comments
1. nickve+(OP)[view] [source] 2026-02-03 06:17:40
Cool! Just a thought: instead of having to query the Clickhouse cluster whenever a client clicks "View Top 1000 Leaderboard" (which could cause a lot of load), it might be useful to instead fetch the top 1000 every hour (day?) and display the top 1000 as a static list.
replies(1): >>system+11
2. system+11[view] [source] 2026-02-03 06:28:13
>>nickve+(OP)
Or just redis cache?
replies(1): >>nickve+Xb
◧◩
3. nickve+Xb[view] [source] [discussion] 2026-02-03 08:01:57
>>system+11
Oops, yeah, that's what I initially was trying to get across but ended up replacing cache with static list for reasons I am unsure of
replies(1): >>Kolmog+Ph
◧◩◪
4. Kolmog+Ph[view] [source] [discussion] 2026-02-03 08:46:22
>>nickve+Xb
It’s a static page, there is no backend. That’s why a static list, for example computed every day via an action is the way to go.
replies(2): >>Imusta+wj >>Imusta+T12
◧◩◪◨
5. Imusta+wj[view] [source] [discussion] 2026-02-03 08:58:37
>>Kolmog+Ph
Author here! Thanks this is the thought I was having too.

Got Quite a lot of feedback which is what I am greatful for having. Firstly gonna fix the name-casing issue & then this is my second priority!

◧◩◪◨
6. Imusta+T12[view] [source] [discussion] 2026-02-03 18:28:06
>>Kolmog+Ph
Update: Done! [Most likely, If I find the time to do so,I will keep an eye on it for a few days to see if its computed daily or not but I am most likely sure that it might be the case]
[go to top]