alpha22jp / simplenote2.el

A new version of emacs helper to interact with Simplenote
GNU General Public License v2.0
58 stars 12 forks source link

Can't retrieve all notes #18

Closed kambara closed 7 years ago

kambara commented 8 years ago

I'm trying to retrieve more than 3000 notes by simplenote2-sync-notes command. But I can't retrieve all notes at one time. Around 100 notes are retrieved per the command. In addition, I can't retrieve more than 2000 notes even if I repeat the command dozens of times.

alpha22jp commented 7 years ago

Hi @kambara

Sorry for leaving this issue for a long time. Since I had personally stopped using Simplenote, I wasn't motivated to fix it. Recently I restarted to use Simplenote, and encountered this issue when I'm using simplenote2.el on Windows.

simplenote2-sync-notes trys to retrieve notes parallely using deferred:parallel. But the number of process appears to be limited depending on the enviroenment. In my case, the number looks to be about 28.

I modified the note retrieving process so it limits the number of getting notes parallely up to 20. I believe it fixes this issue. Please have a try on the latest version.