ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 25,988
- Points
- 823
Reputation:
Let's assume I want to push the count of a user's posts in a thread into the thread's template. Then, I would need to query something like
"SELECT COUNT FROM post WHERE thread_id = AND user_id = ".
But what about pages 2, 3, 4, ...?
Do I want an extra query for each page? Does it make sense to cache this value? If so, where and how? If not, why not?
Continue reading...
"SELECT COUNT FROM post WHERE thread_id = AND user_id = ".
But what about pages 2, 3, 4, ...?
Do I want an extra query for each page? Does it make sense to cache this value? If so, where and how? If not, why not?
Continue reading...