Page MenuHomePhabricator

Improve performance of the search service
Closed, ResolvedPublic

Description

See T180486
Also hitting T164773

Event Timeline

  • no parameters given = slow: GRAPH ?g { ?s ?p ?o };
  • with dataset = slow, e.g., 31sec, 366ms: GRAPH <$dataset> { ?s ?p ?o};
  • with property = fast, e.g., 455ms GRAPH ?g { ?s $property ?o };
  • with value = slow: GRAPH ?g { ?s ?p ?o { SELECT ?o WHERE { ?o ?x $value} };
  • with property and value = slow

sed -n '${OFFSET},${LIMIT}'p ${QUICKSTATEMENT_DATASET} would actually do the job when no property and/or value are given!

Hjfocs moved this task from Doing to Done on the Wikidata-primary-sources board.

Solution: add a wd:Qxxx a wikibase:Item triple at upload/update time.