iOS 9.3ではHKStatisticsCollectionQueryが非常に遅いようです。それは前に1つまたはそれ以下の時間を要した活動的なカロリーの1年間の毎時統計を返すために40秒以上かかる可能性があります。試行錯誤の多くの時間後iOS 9.3でHKStatisticsCollectionQueryを高速化するにはどうすればよいですか?
let predicate = HKQuery.predicateForSamplesWithStartDate(anchorDate, endDate: endDate, options: [])
let query = HKStatisticsCollectionQuery(quantityType: quantityType,
quantitySamplePredicate: predicate,
options: statisticOptions,
anchorDate: anchorDate,
intervalComponents: interval)
あなたの述語はどのように見えますか? – Wilmar