I was wondering if this is faster when you try, for example, to check how many posts are in a certain thread on the forum. Should I...
(a) Go through each message in the database with a specific thread identifier and count how many rows
or
(b) Add one to a separate column in the thread database each time a thread is created, and then query for this single row
Thanks.
source
share