Difference between revisions of "API: Who"

From Elder Tale Online MUSH
Jump to: navigation, search
m
m
Line 9: Line 9:
 
!style="text-align:left;"| Name
 
!style="text-align:left;"| Name
 
!style="text-align:left;"| Connected For
 
!style="text-align:left;"| Connected For
!style="text-align:left;"| Idle For{{#for_external_table:<nowiki/>
+
!style="text-align:left;"| Idle For{{#display_external_table:template=WhoLine|data=CharacterId=characterid,OnFor=connectedfor,IdleFor=idlefor,Name=name}}
{{!}}-
 
{{!}} {{#ask: [[Characterid::{{{CharacterId}}}]] | format=debug | default=FAIL }} >{{{CharacterId}}}<
 
{{!}} {{{OnFor}}}
 
{{!}} {{{Idlefor}}}
 
}}
 
 
|}
 
|}
  
 
{{#ask: [[Characterid::18359]] | format=debug | default=Fail}}
 
{{#ask: [[Characterid::18359]] | format=debug | default=Fail}}

Revision as of 00:25, 23 March 2019


Name Connected For Idle For
SQLStore debug output
ASK Query
[[Characterid::18359]]
SQL Query
SELECT DISTINCT
  t0.smw_id AS id,
  t0.smw_title AS t,
  t0.smw_namespace AS ns,
  t0.smw_iw AS iw,
  t0.smw_subobject AS so,
  t0.smw_sortkey AS sortkey, t0.smw_sort
FROM
  `wiki_smw_object_ids` AS t0
INNER JOIN
  `wiki_smw_di_blob` AS t1 ON t0.smw_id=t1.s_id
WHERE
  (
   (t1.o_hash='18359') AND t1.p_id='596')
  AND t0.smw_iw!=':smw'
  AND t0.smw_iw!=':smw-delete'
  AND t0.smw_iw!=':smw-redi'
ORDER BY
  t0.smw_sort ASC
LIMIT
  55
OFFSET
  0
SQL Explain
IDselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEt1refs_id,o_hash,s_id_2,p_ido_hash258const1Using index condition; Using where; Using temporary; Using filesort
1SIMPLEt0eq_refPRIMARY,smw_id,smw_iw,smw_iw_2PRIMARY4eldertale_wiki.t1.s_id1Using where
Auxilliary Tables
No auxilliary tables used.
Query Metrics
Query-Size:2
Query-Depth:1
Errors and Warnings
None