Latest Animes - add a Remove Lame option [DONE]

old granted and denied feature requests

Moderator: AniDB

Locked
spankydam
Posts: 15
Joined: Sat Feb 15, 2003 3:26 pm
Location: UK (still waiting for ride off this planet)

Latest Animes - add a Remove Lame option [DONE]

Post by spankydam »

Thanks for implementing the Latest Anime feature exp - it's really handy for seeing the new stuff.

Can you add an option 'Hide Lame' to hide those animes which have not had any episodes added yet - that way it's gonna be easy to see which have been added as placeholders and which have episodes ready to watch.

Thanks again for a great help to my otaku-ness :D Spanky
Iceman[grrrr]
Posts: 312
Joined: Sat Aug 02, 2003 3:22 am
Location: Québec, Canada

Post by Iceman[grrrr] »

Instead of filtering animes without episodes, I suggest leaving out the one without a single file containing an ed2k link.
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

well,

the current sql table layout would make this a pretty expensive query.
maybe i'll add some more caching someday, that would allow me to display such data (eps/files added).

BYe!
EXP
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

With proper indexes, would a DISTINCT really be such a big performance drain?
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

Elberet wrote:With proper indexes, would a DISTINCT really be such a big performance drain?
IMHO distinct is one of the worst sql commands @ speed.
i try to avoid it whenever possible.
i guess in this case it wouldn't be all that bad but i'd still prefer to simply include two "episodes/files present" integers to the anime table.

BYe!
EXP
spankydam
Posts: 15
Joined: Sat Feb 15, 2003 3:26 pm
Location: UK (still waiting for ride off this planet)

Post by spankydam »

Hi EXP
the current sql table layout would make this a pretty expensive query.
maybe i'll add some more caching someday, that would allow me to display such data (eps/files added).
Caching would be an ideal option for this type of query....

The new anime series results are unlikely to change that often, so why even bother to do a lookup on the tables every time for the non-lame series?

Auto-building the query at regular intervals and then delivering a cached version of it rather than having to do a lookup every time would get round the hit on the tables. By always defaulting the display to the non-lame cached query you do get benefits, and if people want the latest information they'll check the latest files section anyhow, so any slight difference is unlikely to be that important.

Updating one query against several tables may be a bit of a hit if done regularly by many visitors, but if all you're doing is dumping pre-generated information the hit on performance could be done at a quiet time.

Another option might just be adding an extra flag field against the table - set it as follows:

0 - No episodes added
1 - Episodes / Files present
2 - Complete series

That would give the added benefit of giving the potential of an extra option on the main anime list display - Show Complete - which would then toggle display filtering in the same way that hide synonyms does.

The initial setup could be done by running a one-off compare against the tables, and then update the 'add episode' code to run a verify each time and toggle the flag as each episode is added.


Just a couple of thoughts on this, at the end of the day you're the expert here and it's up to you whether this gets implemented. I'm just trying to argue why this is a good idea that's worth your time.

Remember - have fun, and if you can't have fun then annoy someone else - it works for me :D Spanky
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

well,

i guess i'll implement this some day. however i'll need to work on the caching first.
i'll include some additional integer values for each anime table entry (number of eps with files present and number of specials with files present).
those infos might then also been shown on the anime list page.

BYe!
EXP
Locked