anhinga_anhinga: (Default)
anhinga_anhinga ([personal profile] anhinga_anhinga) wrote2012-08-19 02:07 pm
Entry tags:

Question about Live Journal to software engineers

Is there any good reason to restrict the availability of the Friends page by the most recent two weeks?

Does this restriction really help LJ to scale?

[identity profile] avva.livejournal.com 2012-08-19 06:11 pm (UTC)(link)
Back when I worked on LJ source, when you were paging the Friends page backwards, the code still had to construct the entire list of posts from the most recent one, and then cut from it the window you were interested in. So if you wanted to see entries 151-200, it'd calculate the list of entries 1-200, then take the last 50. As the number grew, such a request would stress the databases more and more. The two weeks restriction was placed to put a limit to that.

I stopped looking at the site source circa 2005, so things may have changed since then, but back then the limit was more or less dictated by the realities of scale at the time.

[identity profile] anhinga-anhinga.livejournal.com 2012-08-19 06:20 pm (UTC)(link)
Thanks!

[identity profile] edwardahirsch.livejournal.com 2012-08-20 05:33 am (UTC)(link)
Да, я вот как раз уезжал на 16 дней и пару дней упустил (а планировал на 23)...

[identity profile] anhinga-anhinga.livejournal.com 2012-08-21 07:20 am (UTC)(link)
Да, и потом дико читать "с конца", потому что никак не можешь догнать (моя текущая ситуация, очень всё плотно), а потом оно исчезнет, если сейчас не поймать.

[identity profile] visualdoj.livejournal.com 2012-08-24 12:01 pm (UTC)(link)
Ой, спасибо, что предупредили...

Может быть, есть какой-нибудь способ читать френд-ленту целиком со стороннего сервиса, по аналогии с тем, как можно читать комменты в friendtimes. Надо бы изучить этот вопрос.

[identity profile] anhinga-anhinga.livejournal.com 2012-08-24 12:56 pm (UTC)(link)
> Надо бы изучить этот вопрос

Если узнаете, поделитесь информацией :-)

Но, вообще, конечно, множество интересных вещей можно делать с последовательностями (постов, например, про которые можно думать, например, как про RSS feeds), но превратить это в удобный software, поддерживающий алгебру соответствующих операций, кажется, никто так и не собрался :-(

Осиливаю френдленту

[identity profile] livejournal.livejournal.com 2012-10-21 03:13 pm (UTC)(link)
User [livejournal.com profile] visualdoj referenced to your post from Осиливаю френдленту
(http://visualdoj.livejournal.com/48684.html) saying: [...] Летом узнал, что во френдленте отображаются посты не более, чем двухнедельной давности [...]