Just curious!
What is the maximum word count for CN database?
How many or limit of words in database?
-
- Posts: 176
- Joined: Sat Nov 14, 2009 1:30 am
- Contact:
-
- Moderator
- Posts: 61
- Joined: Wed Jul 10, 2013 2:33 am
Re: How many or limit of words in database?
danielson wrote:Just curious!
What is the maximum word count for CN database?
Hello Danielson!
Please note that CN database size is not measured in words, it is measured in bytes.
CN relies on SQLite database architecture, so the maximum database file size is about 140 terabytes or bit more than 4 billion notes.
Maximum note size is quite large, but putting in more than 200 kb of text is impractical cause it can result in CN slowing down.
Here you can find out much more about limits in SQLite database architecture - http://www.sqlite.org/limits.html
Thank you!
-
- Posts: 176
- Joined: Sat Nov 14, 2009 1:30 am
- Contact:
Re: How many or limit of words in database?
Thanks for the feedback! (Even if you lost me with the data info on that link)
Anyway, if 200kb would be a reasonable size in order for CN to work well, then i guess we can never dream of having it hold too many graphic images.
It's handy to have multiple databases but if you ever want to search them, that could be an issue for some.
Anyway, if 200kb would be a reasonable size in order for CN to work well, then i guess we can never dream of having it hold too many graphic images.
It's handy to have multiple databases but if you ever want to search them, that could be an issue for some.
-
- Posts: 81
- Joined: Thu Aug 09, 2012 3:39 pm
- Contact:
Re: How many or limit of words in database?
danielson wrote:Anyway, if 200kb would be a reasonable size in order for CN to work well, then i guess we can never dream of having it hold too many graphic images.
It's handy to have multiple databases but if you ever want to search them, that could be an issue for some.
The suggested limit of 200kb is for a single text note. The text has to be processed and indexed which takes processing power. This would not be the case for images which would not need additional processing outside of storage.
Mark
-
- Posts: 176
- Joined: Sat Nov 14, 2009 1:30 am
- Contact:
Re: How many or limit of words in database?
Okay. So if i understand well, we're talking note size and not so much about database size.
-
- Posts: 81
- Joined: Thu Aug 09, 2012 3:39 pm
- Contact:
Re: How many or limit of words in database?
The sqlite numbers suggest virtually unlimited database size. In real life, you need to have a database that responds quickly. You don't want to wait 30 minutes for every key stroke. The best way to determine limits on this is to see how much others have been able to usefully put in.
I have a 15Mb database for testing. Its just slightly sluggish. Maybe each keystroke takes a .5 second to process in the search. So I'm guessing that a 30Mb database (text) might bog down and be the upper limit on my machine. But I have an older machine, so someone else might be able to push it comfortably to (still guessing) to 50Mb.
Maybe others could provide their large-scale experiences.
Mark
Edit: Note that I'm only talking text size (which is all we have to look at right now). Whether images affect the application will probably depend on the implementation. I'm guessing (based on other information managers) that you could have 1G of space for images without impacting text look ups, new notes, etc.
I have a 15Mb database for testing. Its just slightly sluggish. Maybe each keystroke takes a .5 second to process in the search. So I'm guessing that a 30Mb database (text) might bog down and be the upper limit on my machine. But I have an older machine, so someone else might be able to push it comfortably to (still guessing) to 50Mb.
Maybe others could provide their large-scale experiences.
Mark
Edit: Note that I'm only talking text size (which is all we have to look at right now). Whether images affect the application will probably depend on the implementation. I'm guessing (based on other information managers) that you could have 1G of space for images without impacting text look ups, new notes, etc.
-
- Posts: 11
- Joined: Fri Nov 18, 2011 6:48 am
- Contact:
Re: How many or limit of words in database?
Well,
I found it quite interestingly, so I thought about how much text I could copy and paste into a note window before it crashes. My result: Around 300,000 words (~1,200,000 characters). After that, I get this message when saving or clicking:
---------------------------
Error
---------------------------
class boost::exception_detail::clone_impl<struct boost::exception_detail::error_info_injector<class std::runtime_error> >
The complexity of matching the regular expression exceeded predefined bounds. Try refactoring the regular expression to make each choice made by the state machine unambiguous. This exception is thrown to prevent "eternal" matches that take an indefinite period time to locate.
---------------------------
OK
---------------------------
I found it quite interestingly, so I thought about how much text I could copy and paste into a note window before it crashes. My result: Around 300,000 words (~1,200,000 characters). After that, I get this message when saving or clicking:
---------------------------
Error
---------------------------
class boost::exception_detail::clone_impl<struct boost::exception_detail::error_info_injector<class std::runtime_error> >
The complexity of matching the regular expression exceeded predefined bounds. Try refactoring the regular expression to make each choice made by the state machine unambiguous. This exception is thrown to prevent "eternal" matches that take an indefinite period time to locate.
---------------------------
OK
---------------------------
-
- Posts: 81
- Joined: Thu Aug 09, 2012 3:39 pm
- Contact:
Re: How many or limit of words in database?
Mithrandir wrote:Well,
I found it quite interestingly, so I thought about how much text I could copy and paste into a note window before it crashes. My result: Around 300,000 words (~1,200,000 characters). After that, I get this message when saving or clicking:
---------------------------
Error
---------------------------
class boost::exception_detail::clone_impl<struct boost::exception_detail::error_info_injector<class std::runtime_error> >
The complexity of matching the regular expression exceeded predefined bounds. Try refactoring the regular expression to make each choice made by the state machine unambiguous. This exception is thrown to prevent "eternal" matches that take an indefinite period time to locate.
---------------------------
OK
---------------------------
Just out of curiosity, did you have any filters running?
You know, at 1,200,00 characters you could fit the entire text of Moby Dick into a note.
Mark
-
- Posts: 11
- Joined: Fri Nov 18, 2011 6:48 am
- Contact:
Re: How many or limit of words in database?
Howdy,
Nope.
Well, I'd like to have The Lord Of The Rings in a single note, so I guess there's still some work left.
Mark S. wrote:Just out of curiosity, did you have any filters running?
Nope.
Mark S. wrote:You know, at 1,200,00 characters you could fit the entire text of Moby Dick into a note.
Well, I'd like to have The Lord Of The Rings in a single note, so I guess there's still some work left.
Return to “CintaNotes Personal Notes Manager”