vazco_cache_metadata - search and filtering optimizer

Warning: This plugin has't been updated in over 55 years. It may no longer be maintained.

What you can do to help:

This plugin is a must if you use search forms or filter forms and have more than 5k users

Last updated

Do you allow on your website search or filtering by multiple parameters (eg. search or filter users by age, location and profession)? If so, this plugin is a must for you.

Elgg's EAV model don't allow for search by multiple parameters or filtering by multiple parameters in larger datasets. You can experience problems even in case you have more than 5k users. This plugin is a solution.

Install instructions:

  • apply one core modification from changes.txt and enable the plugin

Usage:

Let's say you have a form to search users. In order to optimize, go to classes/vazco_cache_metadata.php, to method 'getOptions' and add following array to $cache_metadata_options:

'user' => array(

'age', 'profession', 'location','wage'

),

 

Where 'user' is a type of object you want to optimize (you can use markup type:subtype as well), and 'age','profession' etc. are metadata you want to optimize.

Rest is done for you by the plugin.

 

How it works:

We create separate relational-like tables for chosen types of entities and their chosen metadata. All is done in background and all changes are reversible. Our modifications optimize original Elgg methods.

Plugin is compatible with 1.7 and 1.8 (and probably with all future versions of Elgg).

 

 

In case you would like to optimize Your Elgg website more, I would advice you to read this article:

http://vazco.eu/news/view/568329

Mike Zacher (vazco)

I'm an Elgg expert and CEO of vazco.eu - the first plugin store for Elgg. We focus on development of highly scalable and highly customized Elgg websites.

Stats

  • Category: Tools
  • License: GNU General Public License (GPL) version 2
  • Updated: 1970-1-1
  • Downloads: 1155
  • Recommendations: 5

Other Projects

View Mike Zacher (vazco)'s plugins