[Kolab-devel] 10.000 events in a Resource Calendar

Alex Potter alex at ap-consulting.co.uk
Sat May 19 17:45:54 CEST 2012


On 19/05/12 12:10, Jeroen van Meeuwen (Kolab Systems) wrote:
> To that end, I was wondering if there's a way to do this more efficiently
> than;
>
> 1) Obtain*all*  event objects,
> 2) Parsing*all*  of them one by one,
> 3) Until I find a conflict or run out of events.
>
> Any thoughts would be appreciated.
>
> Kind regards,
How about a database query?

pseudo: if count (select event.timerange from events where 
event.timerange  in newevent.timerange ) then...

Maybe too resource intensive? Schema wouldn't support it?

Alex


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/devel/attachments/20120519/0126e820/attachment.html>


More information about the devel mailing list