[3 / 1 / 1]
Quoted By: >>1528668
I have a question about database shit.
Let's say I have a site where users make posts and I need to print the number of a user's post count.
Should I keep the post count as a discrete number like 54 somewhere and add +1 to it every time a user posts? Or instead count every single database entry made by the user every time? Latter requires more processing power but is more foolproof, I think
Let's say I have a site where users make posts and I need to print the number of a user's post count.
Should I keep the post count as a discrete number like 54 somewhere and add +1 to it every time a user posts? Or instead count every single database entry made by the user every time? Latter requires more processing power but is more foolproof, I think
