Entry tags:
older LJ entries?
I was just looking for an LJ entry about something I did years ago. I happen to have looked at my "profile?mode=full" recently (and boy does it need updating), so I knew I had fewer than 500 total entries. So I typed "http://yakshaver.livejournal.com/?skip=500" into the location bar. And the earliest entry on that page was from roughly two years after I started using LJ. WTF? With a little experimentation I determined that that is in fact the page I get for skip=n for any value of n >= 380. So I can only look at my most recent 399 LJ entries that way. Apparently the only way for me to see older entries in my own journal is with the brain-damaged yyyy/mm/dd/ URL form.
Does this strike anyone else as arbitrary, pointless, and stupid?
Does this strike anyone else as arbitrary, pointless, and stupid?
no subject
LJ has two options. Either optimize the query or ban large offsets.
Offhand the only solution I see is to label each journal with an "index". Then you could index the "index" column and jump straight to the right offset. However it means inserting a new article in the middle would require renumbering all the existing "index" values. If you assigned these "index" values only for articles after the 400th article then you could reasonably ban inserting articles older than the 400th oldest article, or something like that.
That's a lot of extra code to handle offsets over 400. Is it worth that much extra code? Plus the performance hit of having another index to maintain on every journal update? And the expense of that extra storage space?
no subject
no subject
I suspect another issue is that the code to get the previous entries in *your* journal is similar or the same to get the previous entries in a community, on a friends list, on a friendsfriends list, etc. and that gets even more search intensive.
Given that you can look at your entry subject lines by month, I suspect most people use that to quickly scan through posts. Then again, it wouldn't be too hard to be able to make a page with all the entries from a particular month.
no subject
Incidentally if I had been implementing it I would not have used LIMIT at all. I would have had "Next"/"Previous" pass along the unique id of the last/first article on the page. Then the next page would start displaying articles starting from that time.
This would fix the bug I've sure you've seen where clicking next/previous sometimes brings up a page which overlaps the current page because new articles have appeared in the meantime.
Some finesse would be required to have this deal with inserting articles in the middle but it could be made to work. It would also let you go arbitrarily far back efficiently. What it wouldn't handle is your desire to jump to random places.
no subject
The general description of the config param is: "The recent items (lastn view)'s max scrollback depth. That is, how far you can skip back with the ?skip= URL argument. Defaults to 100. After that, the 'previous' links go to day views, which are stable URLs. ?skip= URLs aren't stable, and there are inefficiencies making this value too large, so you're advised to not go too far above the default of 100."
no subject
no subject
Another way to see older entries is to use an archiving client instead of the web interface, i.e., one that uses the LJ API to walk through all your entries and copy them to somewhere more greppable.