Page MenuHomePhabricator

Track Count grouped by Number of site links per item Wikidata
Closed, ResolvedPublic

Description

  • Count grouped by Number of site links per item
    • Should be possible through the wb_items_per_site table

Event Timeline

Addshore claimed this task.
Addshore raised the priority of this task from to Needs Triage.
Addshore updated the task description. (Show Details)
Addshore added subscribers: StudiesWorld, Addshore, Aklapper.

Something like this will help..

SELECT
	ips_item_id AS item,
	ips_site_id AS site,
	COUNT(*) AS count
FROM wikidatawiki.wb_items_per_site
GROUP BY ips_item_id
ORDER BY count ASC;
Addshore updated the task description. (Show Details)
Addshore set Security to None.

So, there is actually a wb-sitelinks pageprop
So we can use the page_props table for this
When implementing make sure we count how many have 0!

Change 255691 had a related patch set uploaded (by Addshore):
Add sitelinks_per_item script

https://gerrit.wikimedia.org/r/255691

Change 255691 merged by Addshore:
Add sitelinks_per_item script

https://gerrit.wikimedia.org/r/255691

Addshore claimed this task.

I am going to close this as resolved as we are now tracking this!
Graphing this in grafana will probably be put off until I can use the natural sort and sortByName functions from graphite (once it gets updated)