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

Joplin mknote from terminal is very slow #868

Open
jbriales opened this Issue Oct 8, 2018 · 5 comments

Comments

Projects
None yet
4 participants
@jbriales
Copy link

jbriales commented Oct 8, 2018

Operating system

  • Linux

Application

  • Terminal

Creating a note from a shell, via joplin mknote ... is very slow (it takes 1-2 seconds, sometimes even more, up to 10 seconds).
Any reason why this might be happening?

@foxmask

This comment has been minimized.

Copy link
Collaborator

foxmask commented Oct 8, 2018

A Sync is also in progress or another mknote ?
What's the "top" shows you about the computer when that's happening?

@laurent22

This comment has been minimized.

Copy link
Owner

laurent22 commented Oct 9, 2018

Hard to tell why it's so slow. 1s could be possible, but 10 is way too much. Do you have many notes?

@jbriales

This comment has been minimized.

Copy link

jbriales commented Oct 11, 2018

10s might have happened only once for some random reason,
but 1s is common. Still 1s seems slow for a "simple" operation, doesn't it? Why might that happen?
I have around 300 notes.

@foxmask

This comment has been minimized.

Copy link
Collaborator

foxmask commented Oct 11, 2018

You can use the Joplin API with curl for example to " post " note see https://joplin.cozic.net/api/
That way you may trigger several creation of notes in a raw

@shankargopal

This comment has been minimized.

Copy link

shankargopal commented Jan 2, 2019

I can confirm this problem. On a 32 bit Debian system, mknote takes between 3 - 4 seconds to complete. So does joplin mknote set <note> body <text>. My system has slow disk I/O for a number of reasons, but that still seems like a very long time for these operations. Are there a lot of read/writes involved?

Also, there are no other operations occurring, and I have no notes at all (these are times for a fresh Joplin install with at most one or two testing notes).

I cannot test out the API access, as I am running on a 32 bit Linux system and the desktop application AppImage does not work (and so far I have not been able to get it to build either).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment