Hello! I am pretty new with nylas. I created an app that is similar to Gmail. However, it takes too much time for it to fetch the mails (1000+ mails). Is there any way for this to efficiently load? I am using Xano for fetching those mails.
Hi,
If you are trying to recreate a Gmail like interface, I recommend you use our threads endpoint to fetch 20 or 30 conversations at a time. You can do this at least 2 or 3 times per second to load the initial inbox page. Gmail lists 50 threads at a time. After the first page is loaded, I would lazy load the rest of the threads in the background over time.
If you need to have 1000 threads loaded at start of your application, then you will likely need to build a cache mechanism that can load the 1000 threads or messages and keep them updated with incoming webhooks.
Let us know if you need more assistance.