Reply to thread

Not tested in fresh install of 2.1.0 beta 5 but I noticed N+1 queries in forum_list (actionList) and in forum_view (actionForum)


The query below are in node_list


[code]

SELECT `xf_thread_read`.*

FROM `xf_thread_read`


WHERE (`xf_thread_read`.`thread_id` = N) AND (`xf_thread_read`.`user_id` = 1)


LIMIT 1

[/code]


And this is when viewing a particular forum


[code]

SELECT `xf_user`.*

FROM `xf_user`


WHERE (`xf_user`.`user_id` = N)


LIMIT 1

[/code]


They are added 20+ queries each page load.


Back
Top Bottom