Hi all,

This patch against trunk increases the performance of autocomplete address
book searches by only requesting MAXNUM (hardcoded to 15) results be
returned by the backend contact providers (LDAP and SQL). This is in theory
more efficient than fetching the full results list from all available
backends and then pushing individual results into the return list until it
hits MAXNUM contacts.

It also adds a configurable tuning parameter - autocomplete_min_length.
Searches of less than this length (in bytes) are ignored by the autocomplete
provider. This could probably be moved to or duplicated in the
ksearch_get_results JS function, but I have yet to familiarize myself with
that bit of the codebase.

I have backported this to 0.3-stable and tested it on our evaluation host
that's pointed at a production LDAP server with 45k+ entries spread across
multiple OUs, and it seems to work well.

Regards,

-Brandon

_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to