orger icon indicating copy to clipboard operation
orger copied to clipboard

Hypothesis: too heavy file

Open AtomicNess123 opened this issue 3 years ago • 4 comments

Hi, I have been using orger to for my hypothesis database. However, the org file has become too big at this point.

Do you know of a way to start syncing into a second file after the file has become too big? (or start syncing into a second file from a predefined time point instead of syncing into the same file)? Thanks!

AtomicNess123 avatar Jan 08 '21 11:01 AtomicNess123

Hi! Yeah, it's soon going to be a problem for me as well. Not supported as is at the moment, but I might look at it soon-ish!

karlicoss avatar Jan 11 '21 18:01 karlicoss

@karlicoss I have 1k+ annotations. It's not many. But it seems to be quite slowly to load it at first when I'm trying to link it to org-roam notes.

How about these Orger options?

  1. Split org files by numbers(e.g: 5000 annotations per file).
  • Output: HypView-0001.org, HypView-0002.org, ...
  1. Split org files per on web page.
  • Output: HypView-github-karlicoss-orger-issues-24.org
  1. Split org files per on hypothesis annotation group.
  • Output: HypView-PromnesiaDev.org

1 or 2 can be implemented inside Orger itself. 3 should change the hypexport to handle hypothesis group fields for Orger.

hwiorn avatar Mar 25 '22 08:03 hwiorn

Yes, I have +10k annotations, and I can't use the file in Agenda anymore 😆

AtomicNess123 avatar Mar 25 '22 09:03 AtomicNess123

Yeah, @hwiorn I think 1 makes the most sense -- in addition to it being possible to implement in Orger itself, it's also can be completely agnostic of Hypothesis, so it'll also work for other modules. Perhaps it could be a code change somewhere around this line https://github.com/karlicoss/orger/blob/1a511810f193b69a427aa88c51612fadd46b66f1/src/orger/org_view.py#L131

Another option would be to split by file size, although I'd imagine with something like 1000 annotations per file it won't matter.

karlicoss avatar Apr 10 '22 17:04 karlicoss