Thread 105868710 - /g/ [Archived: 477 hours ago]

Anonymous
7/11/2025, 1:16:19 PM No.105868710
52295 - SoyBooru
52295 - SoyBooru
md5: 9415235ec8b1a04192f851bf6f9de084🔍
Why does 4chan have an SQL table for every board and not just one table and the board code as its primary identifier ? Then the post table would have the board code and the number (incrementing for each code) as a composite primary key. Why this strange data design ?
Replies: >>105868836 >>105868921 >>105868989 >>105869038 >>105870230 >>105870296 >>105870350
Anonymous
7/11/2025, 1:17:14 PM No.105868717
snca
Anonymous
7/11/2025, 1:18:37 PM No.105868730
pepeQuestionMark
pepeQuestionMark
md5: d0c4fd4f9d180fd761c5299a684b5206🔍
why does 4chan need to store data?
it's 2025, just throw everything in RAM.
Replies: >>105868912 >>105869643
Anonymous
7/11/2025, 1:33:43 PM No.105868836
>>105868710 (OP)
Probably more efficient since each table will be stored in its own file
(But then partitioning also exists)
Replies: >>105869033
Anonymous
7/11/2025, 1:43:55 PM No.105868912
>>105868730
It wouldn't work since php is a script that's executed for every http request, you could get around this with apcu cache extension
Anonymous
7/11/2025, 1:45:04 PM No.105868921
>>105868710 (OP)
I would tell you, but soiposters don't deserve information, kindness, love or oxygen.
Replies: >>105868942 >>105869033
Anonymous
7/11/2025, 1:47:44 PM No.105868942
>>105868921
chud is not søy thougheveralbeit
Replies: >>105868957
Anonymous
7/11/2025, 1:48:53 PM No.105868957
>>105868942
I don't know why I censored myself since onions isn't filtered anymore
Anonymous
7/11/2025, 1:52:36 PM No.105868989
>>105868710 (OP)
Composite primary keys are always a bad idea
Anonymous
7/11/2025, 1:57:50 PM No.105869033
>>105868836
Retard
>>105868921
Based
Anonymous
7/11/2025, 1:58:36 PM No.105869038
>>105868710 (OP)
Better multithreading performance or something, hell if i know.
Anonymous
7/11/2025, 3:11:20 PM No.105869643
>>105868730
law enforcement
Anonymous
7/11/2025, 4:21:51 PM No.105870230
>>105868710 (OP)
Why use an anti-male meme which diminishes your credibility and damages the legitimacy and neutrality of your argument?
Anonymous
7/11/2025, 4:29:41 PM No.105870296
>>105868710 (OP)
Poor-man's sharding
Anonymous
7/11/2025, 4:36:41 PM No.105870350
>>105868710 (OP)
because some retard made it so decades ago. it doesn't matter as long as it werks.
why would you need a composite primary key for posts? just have a unique id and keep the pot number separately.