0
kevin922

sort by views?

Recommended Posts

Quote

Why can't you sort by # of views anymore?



You never could on these forums...

Post views (and thread views) are not stored in the forum database (Post) tables. Because of that, an index cannot be used and so the resulting query would be extremely slow. The post/thread views had to be moved to a separate table for a major speedup - every time someone viewed a post, it had to update the table. If someone also tried a search, things could get backed up and clog up the server, since MySQL locks the entire table to update a row.

Obviously not impossible to do, just slow in mySQL (postgresql wouldn't have this problem), so the optimization remains.
Safe swoops
Sangiro

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

0