Page 1 of 1

Please don't update the database file when starting up

Posted: Fri Sep 18, 2009 3:26 am
by edwinyzh
since I'm using dropbox to sync my database file, but cintanotes update the database file at startup and if I set cintanotes to start up with Windows I cannot get the file that's modified on another PC synced. So my compromised solution is not to start cintanotes with windows.

Re: Please don't update the database file when starting up

Posted: Fri Sep 18, 2009 8:18 am
by Noddy330
edwinyzh wrote:since I'm using dropbox to sync my database file, but cintanotes update the database file at startup and if I set cintanotes to start up with Windows I cannot get the file that's modified on another PC synced. So my compromised solution is not to start cintanotes with windows.


Agree with this

...and, if CintaNotes has the notes file open (and unchnaged, at start of day) could it be overwritten by a newer one?

Nod

Re: Please don't update the database file when starting up

Posted: Fri Sep 18, 2009 9:48 am
by CintaNotes Developer
Hello edwinyzh,

are you using CintaNotes Beta M10.3 version, or the earlier one?
What exactly do you mean by "updating the datafile during startup"?
Thanks

Re: Please don't update the database file when starting up

Posted: Fri Sep 18, 2009 9:59 am
by CintaNotes Developer
Noddy330 wrote:...and, if CintaNotes has the notes file open (and unchnaged, at start of day) could it be overwritten by a newer one?

Nod


Yes it can now, this is the whole point of the enhancement in 10.3. If it didn't happen then while saving, the newer file on disk would be replaced with the older data from memory (and - gasp - synced to other PCs), that is exactly what happened in versions prior to M10.3. Now a running CN instance picks up the new file as soon as the changes are synced in.

Re: Please don't update the database file when starting up

Posted: Tue Sep 22, 2009 3:04 am
by edwinyzh
CintaNotes Developer wrote:Hello edwinyzh,

are you using CintaNotes Beta M10.3 version, or the earlier one?
What exactly do you mean by "updating the datafile during startup"?
Thanks


Hi use 10.2. I mean if the program start with the system the data file will be updated (timestamp, whatsoever) and caused dropbox will not replace it with the actually newer file that is modified on another pc.

So does the new 10.3 version fixed that problem already? If it does not', just try it with dropbox.

Re: Please don't update the database file when starting up

Posted: Tue Sep 22, 2009 6:30 am
by CintaNotes Developer
10.3 fixes a slightly different problem:

1) you use CN on PC-1, take notes and keep CN running;
2) you go over to PC-2, notes from 1) are synced in;
3) you take notes on PC-2
4) you return to PC-1, notes from 3) are synced in but CN is still running and doesn't read them from disk;
5) you take notes on PC-1 -> data file is saved losing the notes you made in 3).

In 10.3, CN re-reads the data file from disk as soon as it changes.

But this leaves room for the problem with the start up that you describe, I'll check it!

Re: Please don't update the database file when starting up

Posted: Tue Sep 22, 2009 10:40 am
by edwinyzh
Thank you Alex. I think the problem I described can be solved as long as CN does not update the database file at program startup, and I don't see why it's necessary.

BTW, do you consider hierarchical tags while keeping CN's simplicity :)

Re: Please don't update the database file when starting up

Posted: Fri Oct 02, 2009 4:39 pm
by CintaNotes Developer
Well I've done some experimenting and can definitely say that 10.3 doesn't write to notebook.dat on program start, at least on two of my machines.
Have you figured out that it does so only because of DropBox?

Re. hierarchical tags: I consider them for the commercial version, but for current roadmap notebook files + tabs + tag groups seem quite enough.

Re: Please don't update the database file when starting up

Posted: Thu Oct 29, 2009 2:56 am
by edwinyzh
Hi,

May I suggest you to try it with Dropbox? I assume many people uses dropbox to sync cintanotes data.

Re: Please don't update the database file when starting up

Posted: Sun Nov 29, 2009 10:58 am
by CintaNotes Developer
I use it with dropbox too.
I've checked once again and it seems that there's been a regression in version 10.4. The notebook.dat file auto-reload is not working.
In the next two weeks I'll release the version 10.6 that fixes the issue.