Last modified: 2007-01-01 00:03:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10447, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8447 - Setting any $wgHitcounterUpdateFreq greater than 1 halts pagecounters
Setting any $wgHitcounterUpdateFreq greater than 1 halts pagecounters
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.9.x
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-12-31 20:33 UTC by Carl Austin Bennett
Modified: 2007-01-01 00:03 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Carl Austin Bennett 2006-12-31 20:33:43 UTC
Presumably, `hitcounter` is an SQL memory table which temporarily pagenumbers as
pages are viewed; this is supposed to be periodically written back to the main
database. The number of entries amassed before doing so is $wgHitcounterUpdateFreq.

With the MW 1.9-svn software (Dec 29 version, installed with memcached and
eAccelerator), I'm seeing entries do indeed find their way into the `hitcounter`
table (in memory) but then never get written back to the main `page` table. They
accumulate until $wgHitcounterUpdateFreq records are created in memory, then
they disappear entirely.

End result is that, for example, if "this page has been viewed 230234 times":
come back a few days later and it's still at 230234.

Configuring the wiki to write the page counter to the main database on every
pageview does make the problem goes away - but with a penalty in speed.
Comment 1 Brion Vibber 2007-01-01 00:03:48 UTC
Heh...

SQL: CREATE TEMPORARY TABLE `acchits` ENGINE=HEAP  ASSELECT hc_id,COUNT(*) AS
hc_n FROM `hitcounter` GROUP BY hc_id
SQL ERROR (ignored): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near
'ASSELECT hc_id,COUNT(*) AS hc_n FROM `hitcounter` GROUP BY hc_id' at line 1
(localhost)

Fixed in r18704.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links