On Mar 7, 7:33 pm, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > When I render a calendar, I render one month at a time. Any > suggestions on an efficient way to query the db for all the events in > a given month?
I don't know enough about your calendar application, but since we're talking about RFC 2445[1], I would probably segregate repeating VEVENTs from non-repeating events. A non-repeating event is simple to add, edit, and delete. A repeating event requires some calculation and synchronization with your calendar. When you present a calendar view, first look up all active repeating events for a given date range, calculating the actual days events fall within that range. The union of these events and your non-repeating events will form the basis of your calendar view. -- Jeff Bauer Rubicon, Inc. [1] http://tools.ietf.org/html/rfc2445 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

