Page MenuHomePhabricator

Possible wikidata merges
Open, LowPublicFeature

Description

https://tools.wmflabs.org/multichill/queries/wikidata/possible_merge.txt

/* Make a list of items that might be mergable.

Still have to filter out items that already have a link to the language */

connect wikidatawiki_p wikidatawiki.labsdb;
SELECT CONCAT('* ', wbA.ips_site_page, ' - [[Q', wbA.ips_item_id, ']] & [[Q', wbC.ips_item_id, ']]')
FROM wb_items_per_site AS wbA
LEFT JOIN wb_items_per_site AS wbB
ON (wbA.ips_item_id=wbB.ips_item_id AND NOT wbA.ips_site_id=wbB.ips_site_id)
JOIN wb_items_per_site AS wbC
ON (wbA.ips_site_page=wbC.ips_site_page AND NOT wbA.ips_site_id=wbC.ips_site_id)
WHERE wbA.ips_site_id='nlwiki'
AND wbB.ips_site_id IS NULL
AND NOT EXISTS(
SELECT * FROM wb_items_per_site AS wbD
WHERE wbC.ips_item_id=wbD.ips_item_id
AND wbD.ips_site_id='nlwiki');


Version: unspecified
Severity: normal

Details

Reference
bz61881

Related Objects

StatusSubtypeAssignedTask
OpenFeatureNone
DuplicateNone

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:52 AM
bzimport added a project: Tool-tsreports.
bzimport set Reference to bz61881.

If this query needs caching, the following is needed:
a) caching for queries with parameters, or
b) inter-database queries, or
c) being able to override the database connection.

If it doesn't, it can be implemented as a query with parameters.

Aklapper triaged this task as Low priority.Feb 4 2022, 8:11 PM
Aklapper changed the subtype of this task from "Task" to "Feature Request".