Syntactic Confectionery Delight | |
PerlMonks |
ALive Nodesby artist (Parson) |
on Mar 20, 2003 at 21:53 UTC ( [id://244735]=monkdiscuss: print w/replies, xml ) | Need Help?? |
Dear Monks,
Do you want to make your comments to an old node more visible? Here is an idea. Idea is to provide the visibility for such items even after you clear your newest nodes. Also if you are adding something, you can get feedback on that too as you node now will be more visible. Assumption
Example: Parent Node(N) and Replys(R) Node Table in the monstery Table A N1 => 1 R11 => 2 R12 => 6 R13 => 14 N2 => 3 R21 => 10 R22 => 7 N3 => 8 R31 => 9 R32 => 15 N4 => 11 R41 => 12 R42 => 19 N5 => 16 R51 => 18 N6 => 20 Assuming Current Timestamp: 20 R12 - N1 => 13 R42 - N4 => 8 R32 - N3 => 7 R22 - N2 => 7 R51 - N5 => 2 Current-N6 = 0Filtering Above within last x= '5' units of time Current - x = 20- 5 = 15. So Taking only data where timestamp > 15 from 'Table A' Table C N3 => 8 R32 => 15 N4 => 11 R42 => 19 N5 => 16 R51 => 18 N6 => 20Sorting by Largest Timestamp Difference for all parent nodes where timestamp of parent or the reply node is > 15 Table D TS Reply Parent Difference 19 R42 - N4 => 8 15 R32 - N3 => 7 18 R51 - N5 => 2 20 Current-N6 = 0To be Displayed (Sorted by Timestamp differences) Table E TS_Difference Reply TS 8 R42 19(11) 7 R32 15(8) 2 R51 18(16) 0 (N6) (20)Sample Observation:R32 which had parent node at timestamp 8 (12 timestamps ago) is still seems live. Notes:By sorting in such fashion, we give visibility to the nodes which still seems interesting to the community members. We can employ other sort/search mechanism here if more useful. Request:Your input about the idea and implementation.
Back to
Perl Monks Discussion
|
|