navwin » Discussion » Suggestion Box » search with reply limits.... for low reply poems
Suggestion Box
Post A Reply Post New Topic search with reply limits.... for low reply poems Go to Previous / Newer Topic Back to Topic List Go to Next / Older Topic
Parker
Member Elite
since 2000-01-06
Posts 3129
ON

0 posted 2001-02-09 03:03 PM


how about adding an option to limit the search or display of poems with a range of replies....

Say we want to search out the low replied poems, and check them out or the high replied poems..

I went back 20 days and noticed alot of poems with 2 or 3 responses. This would make it easier to find them and take a peek to see if you missed some good stuff.

Parker

© Copyright 2001 James Haley - All Rights Reserved
Nicole
Senior Member
since 1999-06-23
Posts 1835
Florida
1 posted 2001-02-09 03:15 PM


So, something that would allow us to search within a forum, and then narrow it to a certain reply window?     I like that idea!


Acies
Deputy Moderator 1 Tour
Moderator
Member Rara Avis
since 2000-06-07
Posts 7665
Twilight Zone
2 posted 2001-02-09 03:43 PM


That would be a good thing

I see no changes, wake up in the morning I ask myself, "Is life worth living or should I blast myself" TUPAC SHAKUR



Elizabeth Cor
Senior Member
since 2000-10-13
Posts 879
Over the river and through the woods
3 posted 2001-02-23 08:54 PM


This is SUCH an excellent idea! Ron, is it possible?
Ron
Administrator
Member Rara Avis
since 1999-05-19
Posts 8669
Michigan, US
4 posted 2001-02-24 09:11 AM


It is a good idea, and just about anything is possible - but not all things are easy. More importantly, not all things are worth the cost involved.

Here's an example of the latter. When you post a new topic or a reply, Athena grabs everything you typed (up to about 3000 characters) and adds it to our search index. The search index is just a huge, 40meg file that she uses during the search routines - because the alternative would force her to read every thread in our not inconsiderable database. Adding to a file is easy. Unix knows exactly where the file ends, so Athena can find it quickly and append that post you just made. But what happens if you later edit your post? Does Athena go back to the search index and make changes?

No, she doesn't. Because changing something in the middle of the file is a lot different than adding data onto the end of it. To change the middle, Athena would have to read the whole file, find your original entry, change it, then write the whole file to disk again. In essence, we're not just replacing your edited post, but rather replacing the whole file. That's a lot of work for Athena, and just not worth it for the occasional edit.

If you wanted to be able to search by number of replies, I would have to add that field to the search index, again to avoid forcing Athena to read every thread in the system. That would mean adding one or two characters times the number of posts in the system - making the file bigger and thereby increasing the work Athena has to do every time she reads that big old file. Okay, that's a cost, but it's a cost we could probably live with. Those one or two bytes, of course, are the digits representing the number of replies.

But what happens when someone else replies to the thread? Oh, oh. Now we have the same problem as when you edit a post. To keep the search index current, Athena would have to update the reply count in the search index - which is now in the middle of the file and requires her to rewrite the entire 40meg file. If you think about it, Athena would be writing that huge index file every single time anyone in the system posted a reply. I think our cost just went right through the roof.    


Parker
Member Elite
since 2000-01-06
Posts 3129
ON
5 posted 2001-02-24 02:41 PM


Ron, well what about this...
Its appears that the system always knows how many replies are there. Can't you update a smaller database file any time the post gets replied to and use this for input to the search. I suppose that every post has an id number or code and that this database could be updated fairly easily without rewriting the whole file every new reply.
Anyway if its too difficult or hard on the resources of the system or requires too much work well i'm sure we can live without it.

Parker

Post A Reply Post New Topic ⇧ top of page ⇧ Go to Previous / Newer Topic Back to Topic List Go to Next / Older Topic
All times are ET (US). All dates are in Year-Month-Day format.
navwin » Discussion » Suggestion Box » search with reply limits.... for low reply poems

Passions in Poetry | pipTalk Home Page | Main Poetry Forums | 100 Best Poems

How to Join | Member's Area / Help | Private Library | Search | Contact Us | Login
Discussion | Tech Talk | Archives | Sanctuary