English 中文(简体)
2. 加速电离层
原标题:Speed up fetch of EKEvents

我在我的一份备忘录中列出了一份能源企业清单,我谨以一份可调用的电文显示每月的所有活动,每一节载有相关天数。 确实,这项工作和我获得所有数据,我需要,但速度非常缓慢。

问题在于各种事件,这些事件在多个天之内蔓延。

  • 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.

问题回答

特别是在经常发生许多事件的情况下,藏匿起来很缓慢。 我的表态是,只花一番时间,把整天的多天——多天——胜数。 引人瞩目的事件:我创立了“日期”类别,该类别具有可用作表层标题的国家安全局特征,其缩略语之一与对应的“偶发”。 “偶像”不是EKEvents,而是我的班子,我复制的班子需要来自EKEvents的特性。 从一日复一整天起,EKEvent I就创造了相应的“偶数”。 放胎速度非常快——减速是在将财产从反复出现的能源企业中获取。





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签