Page 1 of 1
live search
Posted: Thu Mar 12, 2009 11:49 am
by niklas
Live search is very useful but there is a small annoyance with it that has started to grow on me:
If I intend to search for something, say, "bookends", and type that into the search field, I often end up with an empty window and wonder what went wrong. Then I notice that it has actually searched for something like "bokends" or "booknds" because it missed a keystroke while it was busy doing other things (searching, I presume). So I have to type really slowly to make live search work.
Would it be possible to either have bookends "listen" to keystrokes even though it is busy searching, or, introduce a (longer?) lag between typing a letter and actually performing the search?
Best regards,
Re: live search
Posted: Thu Mar 12, 2009 11:54 am
by Jon
I can't reproduce this. How big is your database? Perhaps you need to increase the database cache and relaunch?
Jon
Sonny Software
Re: live search
Posted: Thu Mar 12, 2009 4:48 pm
by niklas
Jon wrote:I can't reproduce this. How big is your database? Perhaps you need to increase the database cache and relaunch?
Jon
Sonny Software
The database holds around 2200 references (~900 holding attachments) and the cache is set to 8 mb. The database file itself is 12.6 mb.
I tried doubling the cache and it does seem to help. What would the recommended cache size be?
Re: live search
Posted: Thu Mar 12, 2009 5:03 pm
by Jon
It is empirical -- so you've answered the question yourself. Based on my experience, for 2K I'd set it to 10 MB, for 5K to 12 MB, and so forth. The number of attachments shouldn't matter. Don't just jack the cache up to a very large number because there is a penalty in launch time if you do.
Jon
Sonny Software
Re: live search
Posted: Fri Mar 13, 2009 1:26 am
by niklas
Jon wrote:It is empirical -- so you've answered the question yourself. Based on my experience, for 2K I'd set it to 10 MB, for 5K to 12 MB, and so forth. The number of attachments shouldn't matter. Don't just jack the cache up to a very large number because there is a penalty in launch time if you do.
Jon
Sonny Software
OK, thanks!
Re: live search
Posted: Fri Nov 13, 2009 6:06 am
by niklas
I am bumping this topic again, as it turns out I still have problems with this.
I realize I should note that it only becomes a problem when I have set Bookends to display a pdf preview below the reference list. So apparently, Bookends becomes "deaf" while it is busy drawing the preview.
I have tried increasing the cache from 16 to 20 and 30 without much difference.
Best regards, Niklas
Re: live search
Posted: Fri Nov 13, 2009 8:41 am
by Jon
Try uncheckng "Use Webkit to display pdfs". And reduce the cache -- its not helping for a db that small, just increasing launch times.
Jon
Sonny Software
Re: live search
Posted: Sat Nov 14, 2009 10:21 pm
by niklas
Ah, thanks. That did help.