RSS Feed/News Fetch the user entities of all users mentioned or quoted on a thread page in a single query

Status
Not open for further replies.

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
29,663
Points
823

Reputation:

I have a thread page with 20 posts. Now I want to change the behavior of mentions and quotes on that page, depending on the user entity of the quoted or mentioned user.

As I don't have the full user entity, but only user_id's and names, I have to fetch the user entities form the database.

Is there any way to kind of collect the user_id's across the page, then fetch the mentioned and quoted users in a single query (for better performance) and finally manipulate the output depending...

Read more

Continue reading...
 
Status
Not open for further replies.
Top