I am trying to delete event frames within a time interval using AFEventFrameSearch , however finding event frames is too slow (i have up to 130000 frames per hour) , below is the code :
AFEventFrameSearch search = new AFEventFrameSearch(_dataBase, "FindEvents", AFSearchMode.Inclusive, startDate, searchEndDate);
foreach (AFEventFrame item in search.FindEventFrames(0, false, 10000))
So i am trying to make it multi-threaded by using AFElement.getEventFrames() , and specifying start index and count for each thread , however i can't find a way to get the total number of event frames per hour to split it into multi-thread.
how can i get the total number of event frames per hour , or what is the fastest way to delete event frames ?