Hi,
I have created a commenting system which could be used for commenting articles posted. The trouble is that after doing all the development I am stuck with pagination.The architecture to store comments is to hold in filesystem in the following way.
Article
{Folder 1}
Reply 1
Reply to 1 as 1.n
reply to 1.n as 1.n.n
......
{Folder 2}
Reply 2
{Folder 3}
Reply 3
In this scenario, to boost performance i thought of getting a pagination developed . i have developed pagination system as well. The problem here is , if Folder 1 has total 16 comments and folder 2 has 12 comments, per page limit say 10. how would paginatino realize that page 2 has to list 6 comments from folder 1 and 4 from folder 2.
Thanks for the consideration and i request some hints and pointers that i could use. it would be gr8 if anyone here could share some codes / logics
Harish