This issue was converted from https://jira.toolserver.org/browse/DBQ-171.
Summary: Bug In wachlist Query
Issue type: Task - A task that needs to be done.
Priority: Major
Status: Done
Assignee: Hoo man <hoo@online.de>
From: reza <reza.energy@gmail.com>
Date: Thu, 08 Dec 2011 00:06:27
I wanted to list fa.wiki notifications and I used these queries and I had different answers.
SELECT Wl_title,Count(Wl_title),ts_wl_user_touched_cropped FROM watchlist JOIN page ON page_title=Wl_title WHERE page_len>0 AND page_is_redirect=0 and Wl_namespace=0 GROUP BY Wl_title ORDER BY count(Wl_title) DESC LIMIT 20; SELECT Wl_title,Count(Wl_title) FROM watchlist JOIN page ON page_title=Wl_title WHERE page_len>0 AND page_is_redirect=0 and Wl_namespace=0 GROUP BY Wl_title ORDER BY count(Wl_title) DESC LIMIT 20;
all of the Count numbers are different!
also according to
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/maintenance/tables.sql?view=markup
and
http://www.mediawiki.org/wiki/Manual:Watchlist_table
it have wl_user and wl_notificationtimestamp Fields but with describe command it shows ts_wl_user_touched_cropped !
also none of my result are not equal with (page count)
http://toolserver.org/~mzmcbride/watcher/?db=fawiki_p
Version: unspecified
Severity: major