You could instead try using the bulk create API for creating the data that files are saved to, upon the success you get the unique IDs of things created from bulk create. Use those IDs to create your list of things and apply the filers and count operator to get accurate counts.

Bulk create with API fixes race conditions in my experience.

2 Likes