我在我的一份备忘录中列出了一份能源企业清单,我谨以一份可调用的电文显示每月的所有活动,每一节载有相关天数。 确实,这项工作和我获得所有数据,我需要,但速度非常缓慢。
问题在于各种事件,这些事件在多个天之内蔓延。
- Let s say I m going on vacation from 10th of November until 17th of November.
- My search predicate has a startDate with 1st of November and an endDate with 30th of November.
- I do an enumerateEventsMatchingPredicate or eventsMatchingPredicate, whatever, both are slow.
I get an array in return with all events taking place in November, as well as my vacation. But my vacation is just one EKEvent object. So if I want to display a monthly list view of events it would only appear once, on 10th of November, but for reasons of clarity I would to show it on every day it takes place, 10th, 11th, ... 17th.
So what I do is, iterate over each day in a month and do a fetch :-/ This way I get the correct amount of events that take place on a specific day, but ... it feels so complicated.
我已经把手提装成一个发送的“星号”,因此,在填写表格后,电离层自动装置被重载并重开。 但还需要时间。 没有方便用户的时间。
你如何进行这些搜查? 你们是否在如何加快搜寻工作方面有过ti,或许是一部小的法典,还是能够把我引向正确的方向!
我的问题是否明确?
Thanks, -Martin.