Performance
-
This line makes me sad: $D = $wpdb->get_var(“SELECT COUNT(DISTINCT(relevanssi.doc)) FROM $relevanssi_table AS relevanssi”);
It would be awesome (since it’s just the number of unique entries in the db) to save this number in the options table and update this when new entries to that database are made. Running this on every search is not very performant.
I’m going to look into it. Hopefully I can submit a patch here.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Performance’ is closed to new replies.