Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to specify notdeft database location #18

Open
harizvi opened this issue Apr 23, 2021 · 4 comments
Open

Provide a way to specify notdeft database location #18

harizvi opened this issue Apr 23, 2021 · 4 comments

Comments

@harizvi
Copy link

harizvi commented Apr 23, 2021

The xapian database currently goes in .notdeft-db directory inside the org / roam directory. The db includes a few large files, and as the number of my notes is growing the size is growing, for example my .notdeft-db is now 44MB. From what I see each file is touched every time a note is touched.

I use syncthing to sync this directory across multiple machines, and therefore each time I touch a note all these files need to be replicated across. Also, there is a potential for corruption if for some reason files are touched on multiple machines.

For now I can work around this issue with symlinks, but it will be good to have a built-in solution. Thanks.

@hasu
Copy link
Owner

hasu commented Apr 23, 2021 via email

@harizvi
Copy link
Author

harizvi commented Apr 23, 2021

Yes, you can do things with syncthing (for a one-way push), or what I'm doing now (using symlinks to put the cache locally). Either case, it's external setup, and I've to periodically re-index for docs touched at other nodes. I think the setup will be easier if you can specify the database directories.

@hasu
Copy link
Owner

hasu commented Apr 24, 2021 via email

@harizvi
Copy link
Author

harizvi commented Apr 24, 2021

Sure, those are workarounds in my opinion. Someone syncing with Dropbox will have to find their approach, one with Google will have a different one, and so on. The requested change allows for a simpler, cleaner directory for syncing (and backup).

I'm fine if you decide to not implement it, it's not a major issue and I've a workaround. Thanks for notdeft!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants