roundcubemail-plugins-kolab/plugins/libkolab/SQL/mysql/2014021000.sql
Thomas Bruederli af6d366a1f Optimize access to kolab contacts using a sorted and limited query (#2828)
- Add columns for sorting in kolab_cache_contact
- Extend bin/modcache.sh script to update existing cache records
- Add setters for ORDER BY and LIMIT clauses
- Adapt the kolab_addressbook plugin to fetch contacts page-wise

ATTENTION: This changeset contains database schema changes!
Run `bin/updatedb.sh --dir plugins/libkolab/SQL --package libkolab`

Afterwards, the cached data needs to be updated. To do so, either run
  `plugins/libkolab/bin/modcache.sh update --type=contact`
or execute the following query
  DELETE FROM `kolab_folders` WHERE `type`='contact';
2014-02-10 11:46:50 +01:00

9 lines
387 B
SQL

ALTER TABLE `kolab_cache_contact` ADD `name` VARCHAR(255) NOT NULL,
ADD `firstname` VARCHAR(255) NOT NULL,
ADD `surname` VARCHAR(255) NOT NULL,
ADD `email` VARCHAR(255) NOT NULL;
-- updating or clearing all contacts caches is required.
-- either run `bin/modcache.sh update --type=contact` or execute the following query:
-- DELETE FROM `kolab_folders` WHERE `type`='contact';