| cache_article_search | | struct | | 0012C6C770E257553306D62A262E56EF | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 79 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 00567452036525644B4EAF5D377AD55C | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 32 ms | | Records: | 8 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 009A08511E1E34DE4013FDF19FF14487 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 46 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 00A1576B9D945F4CCA7AF62680ECFD3A | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 15 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 00DE2A72CE06B3E40A3E9AE912EDC31E | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 0 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 013C6B29D0596FA8A199133ECDFAB1C4 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
sections_articles sla
on sla.article_id = a.id
and sla.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and sla.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
atr.title asc
limit
?,
? | | Time: | 15 ms | | Records: | 12 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 016F6E6AB8E602862125E2E723EB436A | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
sections_articles sla
on sla.article_id = a.id
and sla.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and sla.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 0 ms | | Records: | 1 | | Columns: | count |
| | 01856900A09A01A3B8537A568D6E56F4 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 63 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 01B563DD649D8C8C30563F51F9FC690E | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 15 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 01C2A0794EDB8851A902D4B3F22D08DE | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 94 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0250D04ABA99E506CAA5E57633380383 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 15 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0253DF6878643921C0C29DB0AA2C5D4D | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 46 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 026711B00872AD01CCCABB98696068C1 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 32 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 02CBD5394A003F4751DDEEE3DF6BA45B | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,
n.start_at,
n.end_at,
n.close_at,
nt.information_url,
n.contact_details,
nt.location,
nt.organisation_name,
nt.organisation_url
,acl.parent_section_slug AS section_slug
,acl.section_slug AS sub_section_slug
,acl.canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
LEFT JOIN article_canonical_link acl on a.id = acl.article_id AND atr.language_id = acl.language_id
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
left outer join
notices n
on n.article_id = a.id
left outer join
notice_translations nt
on nt.article_id = n.article_id
and nt.language_id =
?
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
n.close_at asc
limit
?,
? | | Time: | 31 ms | | Records: | 13 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url en_slug, en_transtypeid, fr_slug, fr_transtypeid, zh_slug, zh_transtypeid es_slug, es_transtypeid, po_slug, po_transtypeid, ar_slug, ar_transtypeid start_at, end_at, close_at, information_url, contact_details, location organisation_name, organisation_url, section_slug, sub_section_slug, canonical_link |
| | 02D5D87E439E0B8E6CECACEAB1E72E4D | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 030B787AC000EADF042C3DE2A4CBEB4A | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
sections_articles sla
on sla.article_id = a.id
and sla.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and sla.section_id = ?
and a.is_deleted = ?
and lower(atr.title) like ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
slug asc
limit
?,
? | | Time: | 16 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 03BE92757892B9C4574631E04986E766 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 047E1D317932B6259A0B418FC9E29336 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 0 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 05073606524FCC3BAAD5480960EA2724 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 46 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 058D47423C548B364C2A9D2C48135377 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 250 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 05B3B7CB8590BAC4CC8294B38F13FCD6 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
distinct left(trim(atr.title),1) as letter
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
atr.title asc
limit
?,
? | | Time: | 47 ms | | Records: | 0 | | Columns: | letter, section_slug, sub_section_slug, canonical_link |
| | 0687D44BA60274DA10D34A58FB6D9D66 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 06EB8702E587EAF80E9FFC144E73435A | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 0 ms | | Records: | 1 | | Columns: | count |
| | 0734C9FEE65CFB52EBB7FC0D82DA385C | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 468 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0735E571AC98D2FC70968060F62F1A89 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?,?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 15 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 075959266966AF741988FB8CF189A4FE | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
left outer join
notices n
on n.article_id = a.id
left outer join
notice_translations nt
on nt.article_id = n.article_id
and nt.language_id =
?
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 32 ms | | Records: | 1 | | Columns: | count |
| | 0789B2F52DC121BE90FF1492D6A79C78 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 13 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 081252C954CFBA785FD6CDC5E9CAABC7 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0870829EE00D7AE8507CB7C0637CAB77 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?,?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0913C9831101147599B32473319E3625 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?,?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 32 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 092B6B1EEAD78C93B933984E043CA417 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 0 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0948D809E16C755F77D6E5E579D25C40 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
slug asc
limit
?,
? | | Time: | 0 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 0959891F1C582B9B8B3C9526D135AC5C | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 15 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 096AE5927B8ECC0747F6ADED842E80E0 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
sections_articles sla
on sla.article_id = a.id
and sla.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and sla.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 0 ms | | Records: | 1 | | Columns: | count |
| | 098A606634DC91A5154E245520FD1D14 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 63 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 09B535334E44A24977B49A3B26CE7DA3 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
sections_articles sla
on sla.article_id = a.id
and sla.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and sla.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 7 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 09C58A3FCB6B57C5FA147D3AC271DC77 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,
n.start_at,
n.end_at,
n.close_at,
nt.information_url,
n.contact_details,
nt.location,
nt.organisation_name,
nt.organisation_url
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
left outer join
notices n
on n.article_id = a.id
left outer join
notice_translations nt
on nt.article_id = n.article_id
and nt.language_id =
?
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, start_at, end_at, close_at information_url, contact_details, location, organisation_name, organisation_url, section_slug sub_section_slug, canonical_link |
| | 09CF2E4568B892353DA79B9196A963A8 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?,?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0A53B676238952FA405BE94085D241D0 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 46 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0A59416A2BE8521BAC313E3296D641E6 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0B20F8524F84775BB5B5C7EA710284AC | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 0B3230152B89E494DB855B9390E58C3A | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 0 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0B7C19E8BAEBB9AD5DD4CB53D9AA548D | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 0BC880DF10890EE395BCC4A5964B1634 | | query [short version] | | Query Source: | Query of Queries | | Records: | 5 | | Columns: | id, slug, type, type_slug, title, blurb, publish_at ar_slug, ar_transtypeid, es_slug, en_slug, en_transtypeid, es_slug es_transtypeid, fr_slug, fr_transtypeid, po_slug, po_transtypeid, zh_slug zh_transtypeid, source, author, section_slug, sub_section_slug, canonical_link
|
| | 0CFCB70B0CC60552749AD597EAD83B54 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
sections_articles sla
on sla.article_id = a.id
and sla.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and sla.section_id = ?
and a.is_deleted = ?
and lower(atr.title) like ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 16 ms | | Records: | 1 | | Columns: | count |
| | 0D8DFB6BBA4AA24CFE9D429427C879AE | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
sections_articles sla
on sla.article_id = a.id
and sla.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and sla.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
atr.title asc
limit
?,
? | | Time: | 16 ms | | Records: | 6 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 0DDABF3DACE753698D7D9DC8B669A715 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0DE2507A9E45831610D4AB42A49871FA | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0EA1CFE54248F7672FE718707FA608D7 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?,?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0EA7B6B04B83593BAB87BD469330E19D | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
sections_articles sla
on sla.article_id = a.id
and sla.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and sla.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 0 ms | | Records: | 1 | | Columns: | count |
| | 0ED803EE34AFFB72C98841C67D19A539 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0F48ED6C88A4DF8776E919C6A3279E97 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,
n.start_at,
n.end_at,
n.close_at,
nt.information_url,
n.contact_details,
nt.location,
nt.organisation_name,
nt.organisation_url
,acl.parent_section_slug AS section_slug
,acl.section_slug AS sub_section_slug
,acl.canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
LEFT JOIN article_canonical_link acl on a.id = acl.article_id AND atr.language_id = acl.language_id
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
left outer join
notices n
on n.article_id = a.id
left outer join
notice_translations nt
on nt.article_id = n.article_id
and nt.language_id =
?
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
n.start_at asc
limit
?,
? | | Time: | 62 ms | | Records: | 2 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url en_slug, en_transtypeid, fr_slug, fr_transtypeid, zh_slug, zh_transtypeid es_slug, es_transtypeid, po_slug, po_transtypeid, ar_slug, ar_transtypeid start_at, end_at, close_at, information_url, contact_details, location organisation_name, organisation_url, section_slug, sub_section_slug, canonical_link |
| | 0F5ECA936F73F923DFA3AC91260B0F59 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,
br.publisher,
br.author_name,
br.publication_date as book_publication_date,
br.reviewer_name,
br.price
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
book_reviews br
on br.article_id = a.id
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 15 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, publisher, author_name, book_publication_date reviewer_name, price, section_slug, sub_section_slug, canonical_link |
| | 0FC1D949CCE4B602B0BD9717AA986F48 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 0FF22ADB7F421F66E4CD7E1917862408 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 0 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1097C1FF6AE7303E98E72D11B85EADB1 | | query [short version] | | Query Source: | Query of Queries | | Records: | 20 | | Columns: | id, slug, type, type_slug, title, blurb, publish_at ar_slug, ar_transtypeid, es_slug, en_slug, en_transtypeid, es_slug es_transtypeid, fr_slug, fr_transtypeid, po_slug, po_transtypeid, zh_slug zh_transtypeid, source, author, section_slug, sub_section_slug, canonical_link
|
| | 10C7DE4294A265CBFB7E6C03BD2A05C3 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 10DA99D525B2C958F7E060CADB2C4E3F | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 0 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1148B6A778593818ABC1F96780316A22 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
sections_articles sla
on sla.article_id = a.id
and sla.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and sla.section_id = ?
and a.is_deleted = ?
and lower(atr.title) like ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 16 ms | | Records: | 1 | | Columns: | count |
| | 11738F2384F8BF0E8F2CCCBA3F68732E | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 2 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 118932552E579A011A918BA97705D395 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,
n.start_at,
n.end_at,
n.close_at,
nt.information_url,
n.contact_details,
nt.location,
nt.organisation_name,
nt.organisation_url
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
left outer join
notices n
on n.article_id = a.id
left outer join
notice_translations nt
on nt.article_id = n.article_id
and nt.language_id =
?
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 63 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, start_at, end_at, close_at information_url, contact_details, location, organisation_name, organisation_url, section_slug sub_section_slug, canonical_link |
| | 118C9D3C646B5B5C05DAF865B208FF77 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 11A02AA3B5A6650FB9EC5534B9AB9951 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
sections_articles sla
on sla.article_id = a.id
and sla.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and sla.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
atr.title asc
limit
?,
? | | Time: | 15 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 124F8023AAF18A56E75D56504DA430A6 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 15 ms | | Records: | 1 | | Columns: | count |
| | 13133C099A6E6F913BD10B718B0BADF3 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?,?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 516 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1331B08E69A89C8982A81114A91878FF | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 133CC83EFB628AD25B7DF3DF6F2530A8 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 0 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 14145F9F4822CBCEEF6F9CD77CE68F21 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 0 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 147A24B65F5D91E175FC7DFF2D318138 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 15 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 148A2955BD6EF4D0D3B24D9FBB6A66FC | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
sections_articles sla
on sla.article_id = a.id
and sla.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and sla.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
atr.title asc
limit
?,
? | | Time: | 15 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 157576B3B33EFC6937993C0F6E81BD13 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?,?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 109 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 16A67B8831D2790E94BD80DBABEB7442 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 9 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 16B6D158E398A230974166D07AF7721D | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 15 ms | | Records: | 9 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 16BCB5B7E68F227759A6CB47AB6C703E | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
left outer join
notices n
on n.article_id = a.id
left outer join
notice_translations nt
on nt.article_id = n.article_id
and nt.language_id =
?
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 32 ms | | Records: | 1 | | Columns: | count |
| | 17DF6C58A209EFBC86B3D14CCCFD8029 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 18270D0EE86D3CF06309863835C9A138 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 187722AEF418624320E719C8EC9EB9E9 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 32 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 19076D5D2B69DFDFB0676989C54D13C4 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 1969A3412BE8C23787854E61D9BD8A9F | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
left outer join
notices n
on n.article_id = a.id
left outer join
notice_translations nt
on nt.article_id = n.article_id
and nt.language_id =
?
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 32 ms | | Records: | 1 | | Columns: | count |
| | 1970289B711D346646CB76D0AAFB136A | | query [short version] | | Query Source: | Query of Queries | | Records: | 20 | | Columns: | id, slug, type, type_slug, title, blurb, publish_at ar_slug, ar_transtypeid, es_slug, en_slug, en_transtypeid, es_slug es_transtypeid, fr_slug, fr_transtypeid, po_slug, po_transtypeid, zh_slug zh_transtypeid, source, author, section_slug, sub_section_slug, canonical_link
|
| | 1971CE49CD6D735705CBD64B30DD7912 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 593 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1A352C4BCFC85C06D8976B819928E257 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
letters l
on l.article_id = a.id
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1A4FFFD8FBB371ADE77BE508931E86B0 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 15 ms | | Records: | 6 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1AC1F628077448E7844B13F3C9D414FC | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,
n.start_at,
n.end_at,
n.close_at,
nt.information_url,
n.contact_details,
nt.location,
nt.organisation_name,
nt.organisation_url
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
left outer join
notices n
on n.article_id = a.id
left outer join
notice_translations nt
on nt.article_id = n.article_id
and nt.language_id =
?
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, start_at, end_at, close_at information_url, contact_details, location, organisation_name, organisation_url, section_slug sub_section_slug, canonical_link |
| | 1B0B71451EA22502BFC133F5A95CF889 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 0 ms | | Records: | 6 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1B2DA7BBEE8211F39D8D46F1BC4626BF | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 281 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1B3BF24A2BE64FA1FE8204C7E6088041 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1BE0D48AC33474CE5AFA2D8A680F4018 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
atr.title asc
limit
?,
? | | Time: | 47 ms | | Records: | 16 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 1BE7A0EAC6A2EA6C46ABC3637BCE911B | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
sections_articles sla
on sla.article_id = a.id
and sla.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and sla.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 4 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 1BF77F0F317A881D9FF93FFE2178AB9F | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 1C4A10CEF1EFC27CC001434FCCFD79D9 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?,?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1CF5B49A892B5CE184F50A7F820F7183 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
letters l
on l.article_id = a.id
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 16 ms | | Records: | 1 | | Columns: | count |
| | 1D0D6659C2126CCF523E2E5F4234A560 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 46 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1D5256838517441B6B4FC3EF459ACD34 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?,?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1DE3417E2B511D9CBBF3ABC84C713388 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1E2625F1E0E384A8AF9D97295A8F51EF | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1E28897B36CA8669D10A064EE9F4DBEF | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1E4993482054174B628C097E370CA204 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 16 ms | | Records: | 1 | | Columns: | count |
| | 1E51571EE470AE00E35690B1A9053620 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 46 ms | | Records: | 18 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1E57416572D2C28F1AF4D3E104EAD7BB | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?,?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 546 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1EC575F7BFB4A5D3114671187A5DCFD8 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1F1227780FF47606B3525B75B86AB05A | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 9 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1F486F53E0E975AF6C42B01C85B1EE90 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 10 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 1FBC36D29FF6BAEB488C172D488D1922 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 15 ms | | Records: | 1 | | Columns: | count |
| | 2073BC858884D28227855AFB58720A5D | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 210486B9C763D0F60DE9945E03F0A5B0 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 0 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 21D9FCE548F91275AFFA19E9F4E5A553 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 21E85ED3039B7BD1CBE72FADD4BD3447 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 3 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 2267C6A5DE0F5BCDFBC71D9177224174 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and lower(atr.title) like ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
slug asc
limit
?,
? | | Time: | 47 ms | | Records: | 6 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 227CCF05DFBA69E7F971F0CEDFFDCB0D | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?,?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 844 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 229DA9FB11A5FBA054C6C46F8101E69D | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 15 ms | | Records: | 11 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 22D6B88D9B81CCE3A42903139A3E6989 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 47 ms | | Records: | 1 | | Columns: | count |
| | 22DBDDF13E6F717802A781B2F574778C | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 13 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 2309463D3067D158E17DE01E1ADD5242 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 16 ms | | Records: | 5 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 236A43A0A18D3C83CEF947FCEA7462FA | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 16 ms | | Records: | 1 | | Columns: | count |
| | 236FE6405F6DB9675C14A1F3820FFB16 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 0 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 238EFEEC569BC42114F9DCBD3D19C9E5 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 31 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 239604E7A219EFC0F3DB8C1DE72902ED | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 16 ms | | Records: | 1 | | Columns: | count |
| | 23BCC01FFBA148AE6E6AE41FAF51A89C | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 687 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 24090DE032E7BC275D35B47DF4D16A98 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 15 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 243CDBFBDC55652B081FCE3CFBA2658E | | query [short version] | | Query Source: | Query of Queries | | Records: | 20 | | Columns: | id, slug, type, type_slug, title, blurb, publish_at ar_slug, ar_transtypeid, es_slug, en_slug, en_transtypeid, es_slug es_transtypeid, fr_slug, fr_transtypeid, po_slug, po_transtypeid, zh_slug zh_transtypeid, source, author, section_slug, sub_section_slug, canonical_link
|
| | 24539F2A70B6C1DA42953F41D311C923 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
a.is_deleted,
a.publish_at,
a.expire_at,
a.updated_at,
a.updated_by,
a.is_paid,
u.firstname,
u.lastname,
u.email
,
(select language_id from article_translations atr_temp where atr_temp.article_id = a.id and is_original = 1 limit 1) as original_language_id
,
ast.name as status_name
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 47 ms | | Records: | 1 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, is_deleted, publish_at, expire_at updated_at, updated_by, is_paid, firstname, lastname, email original_language_id, status_name, section_slug, sub_section_slug, canonical_link |
| | 24A3D8E0F70C9FCC502C925ACBDF4344 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 32 ms | | Records: | 3 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 24BF1404668CA7E94B5CE948299FDA2C | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?,?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 63 ms | | Records: | 20 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 24DE069461A7ECE44370477E363AF530 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
book_reviews br
on br.article_id = a.id
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 15 ms | | Records: | 1 | | Columns: | count |
| | 24F4DE3103B7FB76675CDB2FC803D2E8 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
count(distinct a.id) as count
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
sections_articles sla
on sla.article_id = a.id
and sla.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and sa.section_id = ?
and sla.section_id = ?
and a.is_deleted = ?
and lower(atr.title) like ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc | | Time: | 0 ms | | Records: | 1 | | Columns: | count |
| | 2545A1097FABDB3CEBF301BABD3CA5B6 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
sa.is_highlighted,
sa.display_order,
sa.section_id
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,'' AS section_slug
,'' AS sub_section_slug
,'' AS canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
sections_articles sa
on sa.article_id = a.id
and sa.section_id = ?
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and sa.section_id = ?
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
a.publish_at desc
limit
?,
? | | Time: | 62 ms | | Records: | 11 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url is_highlighted, display_order, section_id, en_slug, en_transtypeid, fr_slug fr_transtypeid, zh_slug, zh_transtypeid, es_slug, es_transtypeid, po_slug po_transtypeid, ar_slug, ar_transtypeid, section_slug, sub_section_slug, canonical_link
|
| | 257CDB840331590FEA1B7EF89DCDB5D6 | | query [short version] | | Query Source: | SQL Query | | Datasource: | SCIDEV_PRODUCTION | | Query: | select
distinct
a.id,
a.status_id,
a.type_id,
a.canonical_section_id,
a.created_at,
a.publish_at,
a.created_by,
a.author,
a.source,
a.editor_notes,
a.citations,
a.affiliation,
at.name as type,
at.slug as type_slug,
atr.language_id,
atr.status_id as translation_status_id,
atr.translation_type_id,
atr.title,
atr.slug,
atr.blurb,
atr.body,
case
when ifnull(af.file_name,'') <> '' then af.file_name
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then kd.document_url
else ''
end as keydocument_url,
case
when ifnull(af.file_name,'') <> '' then 'file'
when (ifnull(kd.document_url,'') <> '' and kd.document_url <> 'http://') then 'url'
else ''
end as keydocument_type,
kd.publication_date,
ifnull(ali.link_url,'') as link_url
,
ats.en_slug,
ats.en_transtypeid,
ats.fr_slug,
ats.fr_transtypeid,
ats.zh_slug,
ats.zh_transtypeid,
ats.es_slug,
ats.es_transtypeid,
ats.po_slug,
ats.po_transtypeid,
ats.ar_slug,
ats.ar_transtypeid
,
n.start_at,
n.end_at,
n.close_at,
nt.information_url,
n.contact_details,
nt.location,
nt.organisation_name,
nt.organisation_url
,acl.parent_section_slug AS section_slug
,acl.section_slug AS sub_section_slug
,acl.canonical_link
from
articles a
inner join
article_translations atr
on atr.article_id = a.id
and atr.language_id =
?
and atr.status_id = 2
LEFT JOIN article_canonical_link acl on a.id = acl.article_id AND atr.language_id = acl.language_id
inner join
article_types at
on a.type_id = at.id
inner join
article_statuses ast
on ast.id = a.status_id
inner join
users u
on u.id = a.created_by
left outer join
article_links ali
on ali.article_id = a.id
left outer join
article_files af
on af.article_id = a.id
left outer join
key_documents kd
on kd.article_id = a.id
left outer join
notices n
on n.article_id = a.id
left outer join
notice_translations nt
on nt.article_id = n.article_id
and nt.language_id =
?
inner join
article_translation_slugs ats
on ats.article_id = a.id
where
1=1
and a.status_id = ?
and a.type_id IN (?)
and a.type_id NOT IN (?)
and a.is_deleted = ?
and (
a.expire_at > now()
or a.expire_at is null
or a.expire_at = '0000-00-00 00:00:00'
)
and a.publish_at <= now()
order by
n.start_at asc
limit
?,
? | | Time: | 32 ms | | Records: | 0 | | Columns: | id, status_id, type_id, canonical_section_id, created_at, publish_at, created_by author, source, editor_notes, citations, affiliation, type type_slug, language_id, translation_status_id, translation_type_id, title, slug blurb, body, keydocument_url, keydocument_type, publication_date, link_url en_slug, en_transtypeid, fr_slug, fr_transtypeid, zh_slug, zh_transtypeid es_slug, es_transtypeid, po_slug, po_transtypeid, ar_slug, ar_transtypeid start_at, end_at, close_at, information_url, contact_details, location organisation_name, organisation_url, section_slug, sub_section_slug, canonical_link |
| |
|