added the prefetch situation using cursor.compact()