notion-sync icon indicating copy to clipboard operation
notion-sync copied to clipboard

Sync takes a long time

Open Adjective-Object opened this issue 5 years ago • 2 comments

It shouldn't take that long to traverse the document and generate markdown. I'm not sure if we're doing network transactions under the hood or what.

We are also re-traversing the whole document any time it is updated. Maybe instead we need to be listening to every block and keep those values as cached? I feel like that's a lot of complexity

Adjective-Object avatar Mar 23 '19 17:03 Adjective-Object

Notion has a built-in update feed, so I feel like diffed updates should be possible? I don't know if it's exposed in notion-py though.

Speculative avatar Mar 23 '19 18:03 Speculative

It is, I would need to keep partial reconstructions of the tree stored in memory and then rebuild from a single node changing

Adjective-Object avatar May 10 '19 19:05 Adjective-Object