Phonebook search takes very long time

Hi.
FOP2 2.30.02 with 1770 records on visual_phonebook.
The search/compose field on the top middle part works perfectly, because extracts data from visual_phonebook by a query.
Clicking on Contacts, the panel takes few seconds to open, the first time, and this is ok because it read all records from the visual_phonebook table and generate the html list structure.
The problem is that, when I press 1 char on the phonebook search field, the browser get stuck for 20s or more (CPU=100%), before showing the result.
Pressing a 2nd char into the phonebook search field, things goes a little better, and start working really well when the search field contains 3 or more chars.
I suggest to change the javascript that filter the phonebook informations, to start filtering only when 3 or more chars are pressed.
If you can send me a patch, I'm really happy to test it, because phonebook search is now useless.
Obvious, if I check with only 100records on visual_phonebook table, it works like a charm.
Thanks a lot. Paolo

Comments

  • Thanks Paolo for the feedback, I will see if I can improve the client side filtering routines and update it on a future release.
    Best regards,
  • I have sent you some files via email for you to test, let me know if its faster.
Sign In or Register to comment.