« Issue/2073 » : différence entre les versions
De Semantic MediaWiki - Sandbox
(→Query) |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
Relates to # | Relates to #2073[[CiteRef::gh:smw:2073]][[CiteRef::gh:smw:1824]] | ||
[[Property:Runtime benchmark]], [[Template:Runtime benchmark]] | [[Property:Runtime benchmark]], [[Template:Runtime benchmark]] | ||
Ligne 147 : | Ligne 147 : | ||
}} | }} | ||
{{#scite:gh:smw: | {{#scite:gh:smw:2073 | ||
|type=issue | |type=issue | ||
|citation text=https://github.com/SemanticMediaWiki/SemanticMediaWiki/issue/ | |citation text=https://github.com/SemanticMediaWiki/SemanticMediaWiki/issue/2073 | ||
}} | }} | ||
[[Category:Issue]] {{interlanguagelink:en|Issue/2073}} | [[Category:Issue]] {{interlanguagelink:en|Issue/2073}} |
Version du 4 décembre 2016 à 15:14
Property:Runtime benchmark, Template:Runtime benchmark
Data
Query
Standard select
{{#ask: [[Runtime benchmark.ID::+]] |?Runtime benchmark |?Runtime benchmark.Memory used#- |?Runtime benchmark.ID |?Runtime benchmark.Runtime |?Runtime benchmark.Benchmark notes |format=broadtable |sort=ID |order=desc |limit=2 }}
{{#ask: [[Runtime benchmark.ID::+]] |?Runtime benchmark |?Runtime benchmark.Memory used#- |?Runtime benchmark.ID |?Runtime benchmark.Runtime |?Runtime benchmark.Benchmark notes |format=broadtable |sort=ID |order=asc |limit=2 }}
Chain sort/order
Debug outputElasticStore{ "smw": { "query": "[[Runtime benchmark.ID::+]]", "sort": { "Runtime_benchmark.ID": "ASC", "Runtime_benchmark.Runtime": "DESC" }, "metrics": { "query size": 2, "query depth": 2 }, "description_log": [ [ { "SomeProperty": { "Chain": "[[ID::+]]" } } ] ] }, "elastic": [ { "chain_lookup_query": [ "ID", "[[ID::+]]" ], "query": { "index": "smw-data-db9910120150926-02100_", "body": { "_source": false, "query": { "constant_score": { "filter": { "bool": { "must": { "bool": { "filter": { "exists": { "field": "P:5903.numField" } } } } } } } } }, "size": 10000 }, "search_info": { "took": 3, "timed_out": false, "max_score": 1, "total": 5 }, "isFromCache": false }, { "index": "smw-data-db9910120150926-02100_", "body": { "_source": false, "from": 0, "size": 3, "query": { "constant_score": { "filter": { "bool": { "must": { "terms": { "P:5900.wpgID": [ 13312, 13376, 13392, 20934, 13336 ] } } } } } }, "sort": [ { "P:5900.wpgField.sort": { "order": "asc" }, "P:5903.numField": { "order": "asc" }, "P:5902.numField": { "order": "desc" } } ] } }, { "_shards": { "total": 1, "successful": 1, "failed": 0 }, "valid": true, "explanations": [ { "index": "smw-data-db9910120150926-02100_-v1", "valid": true, "explanation": "ConstantScore(+P:5900.wpgID:{13312 13336 13376 13392 20934})" } ] } ] }