Friends page - How many posts can be displayed

May 13, 2010 13:14


Title
Friends page - How many posts can be displayed

Short, concise description of the idea
Allow the user to set how far back they can go in their friends page.

Full description of the ideaImplement a setting so that the user can decide how many weeks worth of posts they can go back and check (ie 4 weeks instead of 2), also remove the post limit (ie ( Read more... )

friends page, § no status

Leave a comment

andy June 3 2010, 06:06:06 UTC
A SUP // LiveJournal Russia Engineering person here. I believe that it's pretty much impossible for us to implement this right now, for the server load reasons. More specifically, the ?skip=xxx functionality is implemented in a manner similar to how the SQL LIMIT condition works, and that manner is very sub-optimal. Basically, in order for the software to show you ?skip=1000 posts, it needs to know what are these 1000 posts that are skipped, and given the complicated logic (take all of your friends, collect their posts from all the clusters, take into account the security settings they've set and maybe the other stuff), it becomes pretty much impossible to do online, while the user sits waiting for the page to load ( ... )

Reply

andy June 3 2010, 10:20:49 UTC
Responded over there. :)

Reply

nouse4anick_00 June 3 2010, 09:19:11 UTC
well it's kinda silly that if no one posts for a week the 2 week limit can be closer to 500 posts and not 1000. your telling me that you cant just make it the 1000 post limit?

I don't suppose there's a way to create a view for each user and their filters is there? that would take a lot of the time and guesswork out of the programing aspects... or how about maybe offer a truncated view pass the 2 week limit? (ie posting username, post title, and link to the post) that would give us however far back we wanted to go and it would reduce the load on the servers. and if not indefinitely how about the last 3 months or so? maybe try out a month and see how the servers deal with it? I doubt your going to get many requests for anything past that unless someone was gone for more than a month.

Reply

pauamma June 3 2010, 16:29:48 UTC
Are you speaking about viewing the journal (or the entries you can see, anyway) of each user in your flist as a separate page/view?

Reply

nouse4anick_00 June 4 2010, 01:17:18 UTC
mostly about your flist view... though I think the same can be applied to the individual's journal page as well.

Reply

pauamma June 4 2010, 16:10:40 UTC
*nod* Then what andy says applies. Having looked at it, I can attest that the fpage-generation code is performance intensive, and that there isn't any way to make it less so. That means that going from 2 weeks to 4, or from 1000 entries to... however many, isn't really an option. (And I think even n "last 2 weeks on 1 page, earlier 2 weeks on another" approach would break a crucial optimization and make things much worse.)

Reply

nouse4anick_00 June 4 2010, 18:32:08 UTC
ok, then what about put a link to the previous day on there so when i say 'show previous day' it automatically goes into the date mode? THAT wouldn't be hard to code in, and your not detracting anything from the performance (you MIGHT be adding half a dozen lines of code)

Reply

pauamma June 4 2010, 19:26:49 UTC
Yeah, that would work well, if the user has access to the "fpage by day" feature.

Reply

nouse4anick_00 June 10 2010, 07:04:03 UTC
yeah, which i'm sure is a simple check (maybe a bool function?) Could you prehaps put in links for the fpage by day pages? ie links that go back and forward a day (and or a week or whatever)?

Reply


Leave a comment

Up