Hi all - I'm working on a site which is based on a heavily customised Wordpress install. Dozens of 'deals' (wordpress posts) are added every day and right now we're up to several thousand in total. Each of the posts has an expiry date and a location, among other custom fields.
So when you visit the front page, it sorts through the posts by location and then by expiry date, before displaying them ordered by expiry date. Obviously excluding the expired ones and any not in the selected location. This is getting extremely slow.
Can I simply add an index to meta_value in wp_postmeta? This would index loads of stuff unnecessarily. Or should I be storing this data in my own table? How should I go about using my own table in the wordpress loop?
So when you visit the front page, it sorts through the posts by location and then by expiry date, before displaying them ordered by expiry date. Obviously excluding the expired ones and any not in the selected location. This is getting extremely slow.
Can I simply add an index to meta_value in wp_postmeta? This would index loads of stuff unnecessarily. Or should I be storing this data in my own table? How should I go about using my own table in the wordpress loop?
