Dreaded_Anomaly comments on Official Less Wrong Redesign: Call for Suggestions - Less Wrong

20 Post author: Louie 20 April 2011 05:56PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (565)

You are viewing a single comment's thread.

Comment author: Dreaded_Anomaly 20 April 2011 07:10:23PM *  14 points [-]

Allow users to read their own and others' comment histories more easily. This could be accomplished either by adding links to each page of a user's comments (rather than just the very limited "next" and "previous"), or by getting rid of the unpredictably-valued "after" parameter to allow easier URL hacking.

Example of the latter method:

http://lesswrong.com/user/Dreaded_Anomaly?count=10&after=t1_3uea links correctly to the second page of my comments.

http://lesswrong.com/user/Dreaded_Anomaly?count=10 redirects to the first page of my comments.

Comment author: pjeby 21 April 2011 07:57:29PM *  7 points [-]

the unpredictably-valued "after" parameter

That's a database performance trick, which means that getting rid of it will increase database load.

What's happening is that, in order to jump a set number forward, databases have to perform the same query each time, but retrieve more and more records. It's like "jump to the start of this user's stuff, and read 10. Now go to the start, read 20, and give me the last 10. Now go to the start, read 30, and give me the last 10...." So performance gets worse and worse as you page through it, because each time the reads are repeating, and getting longer each time.

The "after" trick basically makes it so that every page is "jump to the spot given by the after tag, and read the next 10". Performance doesn't degrade as you get further into the list.

Alicorn's suggestion (of browsing by date) is probably easier to implement, in that the site could probably look up what "after" value to use, based on the date.

Comment author: Sniffnoy 21 April 2011 10:35:25PM 2 points [-]

There's another reason we want this: Otherwise paging back through recent comments could end up skipping comments if new ones were posted in the meantime!

Comment author: Dreaded_Anomaly 21 April 2011 08:47:27PM 0 points [-]

Ah, I see. Thank you for the explanation.