Closed Bug 438696 Opened 17 years ago Closed 17 years ago

Search Index Insert is flooding the database

Categories

(support.mozilla.org :: Knowledge Base Software, task)

x86
macOS
task
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: oremj, Unassigned)

References

Details

(Whiteboard: sumo_only)

Attachments

(1 file)

I am seeing the following query happen about 300 times/s in production which is flooding the database. insert into `tiki_searchindex` (`location`,`page`,`searchword`,`count`,`last_update`) VALUES (?) We need to take it out before we can put the master/slave patch back in production.
The tiki_searchindex table contains indexes that won't be used when search is using MySQL fulltext index mode anyway.
Attachment #324702 - Flags: review?(laura)
Severity: normal → major
Attachment #324702 - Flags: review?(morgamic) → review+
Now this makes me wonder: did we not switch to InnoDB? Does InnoDB support MySQL fulltext searches?
in r15328 (trunk), r15330 (1.1), and r15331 (production).
InnoDB doesn't support FTS, but I left all the tables that had full text indexes as MyISAM for that exact reason.
Comment on attachment 324702 [details] [diff] [review] do not index into tiki_searchindex table when MySQL fulltext indexes are being used Let's stage this. oremj?
Attachment #324702 - Flags: review?(laura) → review+
To test this: you can go to log in as an admin user, then goto tiki-admin.php?page=search and then click on the "Refresh wiki search index now" and "Refresh tracker search index now" links, and see if those nasty queries happen.
That test case on stage does not cause a huge amount of INSERTs or any INSERTs for that matter.
Status: NEW → RESOLVED
Closed: 17 years ago
Keywords: push-needed
Resolution: --- → FIXED
Whiteboard: tiki_triage
Perhaps InnoDB + Zend_Search_Lucene
Whiteboard: tiki_triage → tiki_discuss
Per the discussion in bug 532156, we're keeping our own implementation of Sphinx-based search, which isn't compatible with general tiki needs. However you choose to deal with search, it's worth making sure that the initial problem here is fixed.
Whiteboard: tiki_discuss → tiki_bug
Whiteboard: tiki_bug → tiki_bug, tiki_upstreamed
Whiteboard: tiki_bug, tiki_upstreamed → tiki_bug
Whiteboard: tiki_bug → sumo_only
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: