enex2notion icon indicating copy to clipboard operation
enex2notion copied to clipboard

[Feature request]: Create a fast mode

Open pedrosimao opened this issue 1 year ago • 3 comments

Suggestion

enex2notion currently adds block by block of content, making it quite slow. While reading the Notion API docs I found that Pages/Database entries can be created with all blocks defined in the children property all at once. I imagine there must be a limitation for this method, since it was not used by the library. So, what about creating a --fast mode that predefines all blocks in only one Page/DB creation request? If there are limtation we can just list them in the documentation.

pedrosimao avatar Jan 14 '23 13:01 pedrosimao

It would be really nice to hear from author why this API is not being used (POST https://api.notion.com/v1/pages as far as I understand).

Could be a good candidate for a community PR if author thinks that is reasonable direction to go, but simply does not have time/interest in making it done.

PS. I am not a big note taker but migrating my notes is taking me more than 12h already (and it is about half completed).

gubenkoved avatar Dec 10 '23 11:12 gubenkoved

I am planning to switch to the official API later. Currently it has some limitations, most notably it lacks a file upload function which will prevent users from uploading notes with pictures and files.

vzhd1701 avatar Dec 10 '23 12:12 vzhd1701

Could those notes which are limited be detected and handled accordingly while the ones which don't require block based utilize the new API?

tastyratz avatar Jan 25 '24 20:01 tastyratz