dojobin
February 15th, 2005, 01:26 AM
Hi all,
I'm halfway through writing an application that acts as a calendar for appointments (it has other features, so I couldn't just use some appointment book software). The app needs to track past and future appointments. So for example a user might book in for the 14/02/05 at 8:00am and I need to store this in the database so I can pull it up and display the associated info whenever that date is selected from my little calendar control.
What I plan to do is to create 1 table that I just keep appending records to - which might be a bit inefficient once a lot of records have been added. I cannot think of another way to do it, so at the moment, this is what I'll do. I think that the efficiency of this would be pretty much comparable to a flat text file! Can anyone think of a better way of handling this? Surely apps like Outlook, iCal and other calendar apps do this in a more efficient way.
Another idea I tossed up was to have separate tables for each year which would reduce the amount of records I had to search, but that would mean creating a lot of tables for no particular reason (to cover future years).
Thanks,
Michael
I'm halfway through writing an application that acts as a calendar for appointments (it has other features, so I couldn't just use some appointment book software). The app needs to track past and future appointments. So for example a user might book in for the 14/02/05 at 8:00am and I need to store this in the database so I can pull it up and display the associated info whenever that date is selected from my little calendar control.
What I plan to do is to create 1 table that I just keep appending records to - which might be a bit inefficient once a lot of records have been added. I cannot think of another way to do it, so at the moment, this is what I'll do. I think that the efficiency of this would be pretty much comparable to a flat text file! Can anyone think of a better way of handling this? Surely apps like Outlook, iCal and other calendar apps do this in a more efficient way.
Another idea I tossed up was to have separate tables for each year which would reduce the amount of records I had to search, but that would mean creating a lot of tables for no particular reason (to cover future years).
Thanks,
Michael