# Sync historical user data, rate limits

**URL:** <https://forums.nylas.com/t/sync-historical-user-data-rate-limits/410>\
**Category:** Question and Answers\
**Created:** [September 5, 2024, 7:12am UTC](https://forums.nylas.com/t/sync-historical-user-data-rate-limits/410 "2024-09-05T07:12:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpapidas](https://avatars.discourse-cdn.com/v4/letter/g/c37758/32.png) [@gpapidas](https://forums.nylas.com/u/gpapidas)\
**Post date:** [September 5, 2024, 7:12am UTC](https://forums.nylas.com/t/sync-historical-user-data-rate-limits/410/1 "2024-09-05T07:12:15Z")

</div>

Hello everyone!

I am using Nylas V3 for integrating emails, threads etc. into my application. The idea is that a user of the application will be able to see their emails and manipulate certain aspects of them, like the assignment of custom tags, renaming an email’s name, or sharing an email with a co-worker. For now, the application only stores the Nylas id plus some custom fields that are internal for the application. I am considering however to sync threads, emails and attachments in the database for each user.

I was thinking of fetching data little by little until the sync process for a user is complete. Optimized search, with a similarity search, as well as faster response times is the goal for this.

Do you guys have any recommended way of syncing historical data? Also, taking rate limits in mind, what do you think would be the optimal number of emails / threads / attachments per user in regards to time? Will fetching 50 emails every 5 seconds for example pose issues? If so, what number every what seconds would be optimal?

---

<div class="post-metadata">

**Author:** ![Blag](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.nylas.com/blag/32/9_2.png) [@Blag](https://forums.nylas.com/u/Blag)\
**Post date:** [September 5, 2024, 10:56am UTC](https://forums.nylas.com/t/sync-historical-user-data-rate-limits/410/2 "2024-09-05T10:56:28Z")

</div>

Hello @gpapidas I have never tried getting historical sync, so let me ask the platform team and I will get back you 🤔
