DELAYED can be trouble, when edit rate exceeds insert rate
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 26 Jun 2004 01:45:30 +0000 (01:45 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 26 Jun 2004 01:45:30 +0000 (01:45 +0000)
includes/SearchUpdate.php

index adad91b..c7b9c61 100644 (file)
@@ -77,7 +77,7 @@ class SearchUpdate {
                # Strip wiki '' and '''
                $text = preg_replace( "/''[']*/", " ", $text );
                
-               $sql = "REPLACE DELAYED INTO searchindex (si_page,si_title,si_text) VALUES ({$this->mId},'" .
+               $sql = "REPLACE  INTO searchindex (si_page,si_title,si_text) VALUES ({$this->mId},'" .
                  wfStrencode( Title::indexTitle( $this->mNamespace, $this->mTitle ) ) . "','" .
                  wfStrencode( $text ) . "')";
                wfQuery( $sql, DB_WRITE, "SearchUpdate::doUpdate" );