Query Metrics
322
Database Queries
55
Different statements
505.85 ms
Query time
0
Invalid entities
Grouped Statements
Time▼ | Count | Info |
---|---|---|
160.17 ms (31.66%) |
1 |
select * from (SELECT distinct on (verse_id, term_text) * from (select cbb.bibleverse_id as verse_id, t.id as term_id, lower(t.text) as term_text, c.url as concept_url, char_length(t.text) as text_len, ct.translatedtitle as title, ct.explanation_id, c.id as concept_id FROM verse_concept vc, term_concept tc, term t, concept c, (select * from canonicalbibleverse_bibleverse where bibleverse_id in (1443001,1443000,1442999,1442998,1442997,1442996,1442995,1442994,1442993,1442992,1442991,1442990,1442989,1442988,1442987,1442986,1442985,1442984,1442983,1442982,1442981,1442980,1442979,1442978,1442977,1442976,1442975,1442974,1442973,1442972,1442971,1442970,1442969,1442968,1442967,1442966,1442965,1442964,1442963,1442962,1442961,1442960,1442959,1442958,1442957,1442956,1442955,1442954,1442953,1442952,1442951,1442950,1442949,1442948,1442947,1442946,1442945,1442944,1442943,1442942,1442941,1442940,1442939,1442938,1442937,1442936,1442935,1442934,1442933,1442932,1442931,1442930,1442929,1442928,1442927,1442926,1442925,1442924,1442923,1442922,1442921,1442920,1442919,1442918,1442917,1442916)) as cbb, bibleverse bv, (select distinct on (cl.concept_id) cl.concept_id, trans.translatedtitle, trans.id as explanation_id, case when trans.language_id = 150 then 1 else 2 end as ordering from concept_work cl, expositiontranslation trans where trans.language_id in (150, 123) and cl.work_id = trans.work_id order by cl.concept_id, ordering) as ct WHERE cbb.canonicalbibleverse_id = vc.verse_id and tc.concept_id = vc.concept_id and t.id = tc.term_id and c.id = tc.concept_id and t.language_id = 150 and ct.concept_id = c.id and cbb.bibleverse_id = bv.id and case when t.text is not null and (bv.content ~* ('\y' || replace(replace(replace(replace(t.text, ')', '\)'), '(', '\('), ']', '\]'), '[', '\[') || '\y')) then true else false end order by cbb.bibleverse_id, lower(t.text), term_id) as t1) as t order by verse_id, char_length(term_text) desc
Parameters:
[] |
80.23 ms (15.86%) |
1 |
SELECT v.id, cv.ordering as verse_order, scc.ordering as chapter_order, t.id as translation_id, scc.id as cchapter_id, v.chapter_id, 'bible' || '_' || bt.url || '_' || cb.url || '_' || c.ordering || '_' || v.indexdisplay as bible_spec, 'explanation' || '_' || t.url as explanation_spec, bt.url as bible_trans_url, cb.url as book_url, v.indexdisplay as verse_index, case when t.language_id = 150 then 1 else case when t.language_id = 116 then 2 else case when t.language_id = 123 then 4 end end end as lang_order, bt.language_id FROM (select * from biblestory where level_id = 2) as bs, canonicalbibleverse cv, (select * from canonicalbibleverse_bibleverse where bibleverse_id in (1443001,1443000,1442999,1442998,1442997,1442996,1442995,1442994,1442993,1442992,1442991,1442990,1442989,1442988,1442987,1442986,1442985,1442984,1442983,1442982,1442981,1442980,1442979,1442978,1442977,1442976,1442975,1442974,1442973,1442972,1442971,1442970,1442969,1442968,1442967,1442966,1442965,1442964,1442963,1442962,1442961,1442960,1442959,1442958,1442957,1442956,1442955,1442954,1442953,1442952,1442951,1442950,1442949,1442948,1442947,1442946,1442945,1442944,1442943,1442942,1442941,1442940,1442939,1442938,1442937,1442936,1442935,1442934,1442933,1442932,1442931,1442930,1442929,1442928,1442927,1442926,1442925,1442924,1442923,1442922,1442921,1442920,1442919,1442918,1442917,1442916)) as cvv, canonicalbiblechapter scc, expositionwork w, expositiontranslation t, expositiontranslationtext tt, story_work sw, biblechapter c, biblebook b, bibletranslation bt, canonicalbiblebook cb, bibleverse v WHERE w.ispublic and t.ispublic and t.language_id in (150,116,123) and v.id = cvv.bibleverse_id and cv.id = cvv.canonicalbibleverse_id and bs.startverse_id = cv.id and cv.chapter_id = scc.id and v.verse_id is null and sw.story_id = bs.id and w.id = sw.work_id and t.work_id=w.id and v.chapter_id = c.id and b.id = c.book_id and b.translation_id=bt.id and scc.book_id = cb.id and t.id = tt.translation_id and tt.text is not null and tt.text <> '' order by cv.ordering, lang_order, t.is_modern desc, w.ordering, t.islanguagedefault desc limit 1
Parameters:
[] |
62.70 ms (12.39%) |
1 |
select t3.* from (select * from (SELECT distinct on (tc.textunit_id, rc.id) tc.textunit_id, rc.id as ref_id, rc.originallinktext as link_text, cc1.book_id, rb.startverse_id as startloc_id, rb.endverse_id as endloc_id, true as is_bibleref, 'bible_' || trans.url || '_' || cb.url || '_' || cc1.ordering || (case when cc1.id <> cc2.id then '-' || cc2.ordering else '' end) || '_' || cv1.ordering || (case when rb.startverse_id <> rb.endverse_id then '-' || cv2.ordering else '' end) as multilink_text, cc1.ordering as ordering1, cv1.ordering as ordering2, (case when trans.language_id = 150 then 2 else case when trans.language_id = 123 then case when trans.languagedefault then 3 else 4 end end end) as priority_order, cb.url as book_url, trans.url as trans_url, cc1.ordering as chapter_order1, cc2.ordering as chapter_order2, cv1.ordering as verse_order1, cv2.ordering as verse_order2, trans.url as div_url, 0 as passage_order FROM refbible rb, refcombined rc, textunit_combinedreference tc, expositiontextunit t, canonicalbibleverse cv1, canonicalbiblechapter cc1, canonicalbiblebook cb, canonicalbibleverse_bibleverse cbb1, bibleverse v1, biblechapter c1, canonicalbibleverse cv2, canonicalbiblechapter cc2, biblebook b, bibletranslation trans WHERE t.passage_id = 36741 and t.id = tc.textunit_id and rc.id = tc.combinedreference_id and rc.id not in (23173,76995,76997,108368,121685,131198,137831) and rb.container_id = rc.id and cv1.id = rb.startverse_id and cv1.chapter_id = cc1.id and cc1.book_id = cb.id and cv1.id = cbb1.canonicalbibleverse_id and v1.id = cbb1.bibleverse_id and v1.chapter_id = c1.id and c1.book_id = b.id and cv2.id = rb.endverse_id and cv2.chapter_id = cc2.id and b.translation_id = trans.id and trans.enabled order by tc.textunit_id, rc.id, priority_order asc, trans.languagedefault desc) as b union select * from (SELECT distinct on (tc.textunit_id, rc.id) tc.textunit_id, rc.id as ref_id, rc.originallinktext as link_text, d.work_id as book_id, re.startlocation_id as startloc_id, re.endlocation_id as endloc_id, false as is_bibleref, (case when w.swedenborgtype is not null then 'swedenborg_' else 'explanation_' end) || trans.url || (case when p.swedenborgsection is not null then '_' || p.swedenborgsection else '' end) as multilink_text, p.ordering as ordering1, t2.ordering as ordering2, (case when trans.id = 62055 then 1 else case when trans.language_id = 150 then 2 else case when trans.language_id = 123 then case when trans.islanguagedefault then 3 else 4 end end end end) as priority_order, trans.url as book_url, trans.url as trans_url, 0 as chapter_order1, 0 as chapter_order2, 0 as verse_order1, 0 as verse_order2, d.url as div_url, p.ordering as passage_order FROM refexposition re, refcombined rc, textunit_combinedreference tc, expositiontextunit t, expositiontextunit t2, expositionpassage p, expositiondivision d, expositionwork w, expositiontranslation trans, expositiontranslationtext tt WHERE t.passage_id = 36741 and t.id = tc.textunit_id and rc.id = tc.combinedreference_id and rc.id not in (23173,76995,76997,108368,121685,131198,137831) and re.container_id = rc.id and t2.id = re.startlocation_id and p.id = t2.passage_id and d.id = p.division_id and d.work_id = w.id and w.id = trans.work_id and trans.url is not null and trans.ispublic and w.ispublic and t2.id = tt.placement_id and trans.id = tt.translation_id order by tc.textunit_id, rc.id, priority_order asc, trans.islanguagedefault desc, trans.isoriginal desc) as e) as t3 order by split_part(link_text, ' ', 1), book_id, ordering1, ordering2
Parameters:
[] |
44.08 ms (8.71%) |
1 |
SELECT DISTINCT v.id FROM bibleverse v, bibleverse mainv, biblechapter c, biblebook b, bibletranslation t, canonicalbibleverse cv, canonicalbiblechapter cc, canonicalbiblebook cb, canonicalbibleverse_bibleverse cvv WHERE ( (v.id=mainv.id AND v.verse_id IS NULL) OR (v.verse_id=mainv.id) ) AND mainv.chapter_id=c.id AND c.book_id=b.id AND b.translation_id=t.id AND t.enabled AND cv.chapter_id=cc.id AND cc.book_id=cb.id AND cv.id=cvv.canonicalbibleverse_id AND v.id=cvv.bibleverse_id AND t.id=:bible_translation_id AND cb.id=:canonical_book_id AND cc.ordering >= :canonical_first_chapter_ord AND cc.ordering <= :canonical_last_chapter_ord AND (cc.ordering > :canonical_first_chapter_ord OR cv.ordering >= :canonical_first_verse_ord) AND (cc.ordering < :canonical_last_chapter_ord OR cv.ordering <= :canonical_last_verse_ord)
Parameters:
[ "bible_translation_id" => 62 "canonical_book_id" => 7 "canonical_first_chapter_ord" => 3 "canonical_last_chapter_ord" => 5 "canonical_first_verse_ord" => 1 "canonical_last_verse_ord" => 31 ] |
24.59 ms (4.86%) |
86 |
SELECT t0.id AS id_1, t0.ordering AS ordering_2, t0.chapter_id AS chapter_id_3 FROM canonicalbibleverse t0 INNER JOIN canonicalbibleverse_bibleverse ON t0.id = canonicalbibleverse_bibleverse.canonicalbibleverse_id WHERE canonicalbibleverse_bibleverse.bibleverse_id = ?
Parameters:
[
1443001
]
|
21.01 ms (4.15%) |
86 |
SELECT t0.id AS id_1, t0.indexDisplay AS indexdisplay_2, t0.ordering AS ordering_3, t0.content AS content_4, t0.contentVector AS contentvector_5, t0.chapter_id AS chapter_id_6, t0.verse_id AS verse_id_7 FROM bibleverse t0 WHERE t0.verse_id = ? ORDER BY t0.ordering ASC
Parameters:
[
1443001
]
|
17.18 ms (3.40%) |
1 |
select * from (SELECT distinct on (p.id) p.id, w.swedenborgtype, t.translatedtitle AS title, p.swedenborgsection as num, 'swedenborg' || '_' || t.url || (case when p.swedenborgsection is not null then '_' || p.swedenborgsection else '' end) as ref_column_spec, t.url as translation_url, d.url as division_url, w.ordering as work_order, p.ordering, case when t.language_id = 150 then 1 else 2 end as lang_order FROM expositionwork w, expositiontranslation t, expositionpassage p, expositiondivision d WHERE p.id in (SELECT DISTINCT passage_id FROM verse_passage WHERE verse_id in (16494,16495,16496,16497,16498,16499,16500,16501,16502,16503,16504,16505,16506,16507,16508,16509,16510,16511,16512,16513,16514,16515,16516,16517,16518,16519,16520,16521,16522,16523,16524,16525,16526,16527,16528,16529,16530,16531,16532,16533,16534,16535,16536,16537,16538,16539,16540,16541,16542,16543,16544,16545,16546,16547,16548,16549,16550,16551,16552,16553,16554,16555,16556,16557,16558,16559,16560,16561,16562,16563,16564,16565,16566,16567,16568,16569,16570,16571,16572,16573,16574,16575,16576,16577,16578,16579)) and p.id not in (SELECT DISTINCT passage_id FROM chapter_passage WHERE chapter_id in (716,715,714) union SELECT DISTINCT passage_id FROM verse_passage WHERE verse_id in (16494,16495,16496,16497,16498,16499,16500,16501,16502,16503,16504,16505,16506,16507,16508,16509,16510,16511,16512,16513,16514,16515,16516,16517,16518,16519,16520,16521,16522,16523,16524,16525,16526,16527,16528,16529,16530,16531,16532,16533,16534,16535,16536,16537,16538,16539,16540,16541,16542,16543,16544,16545,16546,16547,16548,16549,16550,16551,16552,16553,16554,16555,16556,16557,16558,16559,16560,16561,16562,16563,16564,16565,16566,16567,16568,16569,16570,16571,16572,16573,16574,16575,16576,16577,16578,16579) and iscorepassage) and w.swedenborgtype is not null and t.work_id=w.id and d.work_id = w.id and p.division_id = d.id and t.id in (SELECT distinct on (w.id) t.id FROM expositionwork w, expositiontranslation t, expositionpassage p, expositiondivision d WHERE p.id in (SELECT DISTINCT passage_id FROM verse_passage WHERE verse_id in (16494,16495,16496,16497,16498,16499,16500,16501,16502,16503,16504,16505,16506,16507,16508,16509,16510,16511,16512,16513,16514,16515,16516,16517,16518,16519,16520,16521,16522,16523,16524,16525,16526,16527,16528,16529,16530,16531,16532,16533,16534,16535,16536,16537,16538,16539,16540,16541,16542,16543,16544,16545,16546,16547,16548,16549,16550,16551,16552,16553,16554,16555,16556,16557,16558,16559,16560,16561,16562,16563,16564,16565,16566,16567,16568,16569,16570,16571,16572,16573,16574,16575,16576,16577,16578,16579)) and p.id not in (SELECT DISTINCT passage_id FROM chapter_passage WHERE chapter_id in (716,715,714) union SELECT DISTINCT passage_id FROM verse_passage WHERE verse_id in (16494,16495,16496,16497,16498,16499,16500,16501,16502,16503,16504,16505,16506,16507,16508,16509,16510,16511,16512,16513,16514,16515,16516,16517,16518,16519,16520,16521,16522,16523,16524,16525,16526,16527,16528,16529,16530,16531,16532,16533,16534,16535,16536,16537,16538,16539,16540,16541,16542,16543,16544,16545,16546,16547,16548,16549,16550,16551,16552,16553,16554,16555,16556,16557,16558,16559,16560,16561,16562,16563,16564,16565,16566,16567,16568,16569,16570,16571,16572,16573,16574,16575,16576,16577,16578,16579) and iscorepassage) and t.work_id=w.id and d.work_id = w.id and p.division_id = d.id and t.language_id in ( 150,123) and t.ispublic and w.ispublic and t.url is not null and t.url <> '' AND t.type_id = 1 order by w.id, t.islanguagedefault desc limit 1) order by p.id, lang_order) as t2 order by work_order, title, ordering
Parameters:
[] |
15.40 ms (3.04%) |
86 |
SELECT t0.id AS id_1, t0.indexDisplay AS indexdisplay_2, t0.ordering AS ordering_3, t0.content AS content_4, t0.contentVector AS contentvector_5, t0.chapter_id AS chapter_id_6, t0.verse_id AS verse_id_7 FROM bibleverse t0 WHERE t0.id = ? LIMIT 1
Parameters:
[
1442986
]
|
11.94 ms (2.36%) |
1 |
select * from (SELECT distinct on (di.ref_id) di.ref_id, 'bible_' || trans.url || '_' || cb.url || '_' || cc1.ordering || (case when cc1.id <> cc2.id then '-' || cc2.ordering else '' end) || '_' || cv1.ordering || (case when rb.startverse_id <> rb.endverse_id then '-' || cv2.ordering else '' end) as multilink, true as is_bibleref, 1 as section_order, (case when trans.language_id in (select language_id from expositiontranslation where id = 62055) then 1 else case when trans.language_id = 123 then 2 else 3 end end ) as priority_order, cb.url as book_url, trans.url as trans_url, cc1.ordering as chapter_order1, cc2.ordering as chapter_order2, cv1.ordering as verse_order1, cv2.ordering as verse_order2, trans.url as div_url, 0 as passage_order FROM refbible rb, expositiontextunit t, expositiontranslationtext tt, expositiondisplayitem di, canonicalbibleverse cv1, canonicalbiblechapter cc1, canonicalbiblebook cb, canonicalbibleverse cv2, canonicalbiblechapter cc2, biblebook b, bibletranslation trans WHERE t.passage_id = 36741 and t.id = tt.placement_id and rb.container_id = di.ref_id and di.container_id = tt.id and di.ref_id is not null and cv1.id = rb.startverse_id and cv1.chapter_id = cc1.id and cc1.book_id = cb.id and cv2.id = rb.endverse_id and cv2.chapter_id = cc2.id and b.canonicalization_id = cb.id and b.translation_id = trans.id and trans.enabled order by di.ref_id, priority_order asc, trans.languagedefault desc) as b union select * from (SELECT distinct on (di.ref_id) di.ref_id, (case when w.swedenborgtype is not null then 'swedenborg' else 'explanation' end) || '_' || trans.url || (case when p.swedenborgsection is not null then '_' || p.swedenborgsection else '' end) as multilink, false as is_bibleref, t2.ordering as section_order, (case when trans.id = 62055 then 1 else case when trans.language_id in (select language_id from expositiontranslation where id = 62055) then 2 else case when trans.language_id = 123 then 3 else 4 end end end) as priority_order, trans.url as book_url, trans.url as trans_url, 0 as chapter_order1, 0 as chapter_order2, 0 as verse_order1, 0 as verse_order2, d.url as div_url, p.ordering as passage_order FROM refexposition re, expositiontextunit t, expositiontextunit t2, expositionpassage p, expositiondivision d, expositiontranslationtext tt, expositiondisplayitem di, expositionwork w, expositiontranslation trans WHERE t.passage_id = 36741 and t2.id = re.startlocation_id and p.id = t2.passage_id and d.id = p.division_id and re.container_id = di.ref_id and t.id = tt.placement_id and di.container_id = tt.id and di.ref_id is not null and d.work_id = w.id and w.id = trans.work_id and trans.url is not null and trans.ispublic and w.ispublic order by di.ref_id, priority_order asc, trans.islanguagedefault desc, trans.isoriginal desc) as e
Parameters:
[] |
11.64 ms (2.30%) |
1 |
SELECT t.id, (case when l.nativename is not null and l.nativename <> '' then l.nativename else l.name end) as language_name, t.name as name, t.url, bk.url as first_book_url, (case when l.nativename is not null and l.nativename <> '' then l.nativename else l.name end) as group_name, (case when language_id = 116 then 1 else case when language_id = 123 then 2 else 3 end end) as group_order, true as has_book, true as has_chapter, l.righttoleft FROM language l, bibletranslation t join ( select distinct on (t2.id) t2.id as translation_id, cb.url from bibletranslation t2, biblebook b, canonicalbiblebook cb where b.translation_id = t2.id and cb.id = b.canonicalization_id order by t2.id, b.ordering) as bk on t.id = bk.translation_id WHERE t.enabled and t.language_id = l.id and t.id in (select distinct translation_id from biblebook b3, biblechapter c3, bibleverse v3 where b3.canonicalization_id = 7 and c3.book_id = b3.id and c3.ordering = 3 and v3.chapter_id = c3.id and v3.indexdisplay = '1') and t.id in (select distinct translation_id from biblebook b3, biblechapter c3, bibleverse v3 where b3.canonicalization_id = 7 and c3.book_id = b3.id and c3.ordering = 5 and v3.chapter_id = c3.id and v3.indexdisplay = '31') order by group_order, language_name, t.name
Parameters:
[] |
9.01 ms (1.78%) |
1 |
select string_agg(distinct cv.id::text, ',') as cverse_ids, string_agg(distinct cc.id::text, ',') as cchapter_ids, string_agg(distinct cc.ordering::text, ',' order by cc.ordering::text) as cchapter_orders from canonicalbibleverse cv, canonicalbiblechapter cc, canonicalbiblebook cb, bibleverse v, (select * from canonicalbibleverse_bibleverse where bibleverse_id in (1443001,1443000,1442999,1442998,1442997,1442996,1442995,1442994,1442993,1442992,1442991,1442990,1442989,1442988,1442987,1442986,1442985,1442984,1442983,1442982,1442981,1442980,1442979,1442978,1442977,1442976,1442975,1442974,1442973,1442972,1442971,1442970,1442969,1442968,1442967,1442966,1442965,1442964,1442963,1442962,1442961,1442960,1442959,1442958,1442957,1442956,1442955,1442954,1442953,1442952,1442951,1442950,1442949,1442948,1442947,1442946,1442945,1442944,1442943,1442942,1442941,1442940,1442939,1442938,1442937,1442936,1442935,1442934,1442933,1442932,1442931,1442930,1442929,1442928,1442927,1442926,1442925,1442924,1442923,1442922,1442921,1442920,1442919,1442918,1442917,1442916)) as cvv where v.id in (1443001,1443000,1442999,1442998,1442997,1442996,1442995,1442994,1442993,1442992,1442991,1442990,1442989,1442988,1442987,1442986,1442985,1442984,1442983,1442982,1442981,1442980,1442979,1442978,1442977,1442976,1442975,1442974,1442973,1442972,1442971,1442970,1442969,1442968,1442967,1442966,1442965,1442964,1442963,1442962,1442961,1442960,1442959,1442958,1442957,1442956,1442955,1442954,1442953,1442952,1442951,1442950,1442949,1442948,1442947,1442946,1442945,1442944,1442943,1442942,1442941,1442940,1442939,1442938,1442937,1442936,1442935,1442934,1442933,1442932,1442931,1442930,1442929,1442928,1442927,1442926,1442925,1442924,1442923,1442922,1442921,1442920,1442919,1442918,1442917,1442916) and v.id = cvv.bibleverse_id and cv.id = cvv.canonicalbibleverse_id and cv.chapter_id = cc.id
Parameters:
[] |
8.32 ms (1.64%) |
1 |
SELECT distinct s.name, case when sl2.id is null then sl.text else sl2.text end as text, s.fix_quote FROM (select * from ui_string_language where language_id = 123) sl, ui_string s left join (select * from ui_string_language where language_id = 116 and text is not null and text <> '') sl2 on s.id = sl2.ui_string_id where s.id = sl.ui_string_id and s.is_active and s.type_id in (1, 3)
Parameters:
[] |
6.88 ms (1.36%) |
1 |
SELECT max(sl.datemod) FROM ui_string_language sl, ui_string s WHERE sl.language_id in (116, 123) and s.id = sl.ui_string_id and s.is_active and s.type_id in (1, 3)
Parameters:
[] |
4.51 ms (0.89%) |
1 |
select * from (SELECT distinct on (s.id) s.id, s.title, e.description, e.youtube_id, sr.time, s.showtype_id, e.location, case when e.youtube_id is null then 2 else 1 end as video_order, cc.ordering as chapter_order, cb1.ordering as start_verse, cb2.ordering as end_verse, case when e.youtube_id is null then 2 else 1 end as video_order1 FROM show s, embed e, show_bibleref sr left join canonicalbibleverse as cb1 on from_verse_id = cb1.id left join canonicalbibleverse as cb2 on to_verse_id = cb2.id left join canonicalbiblechapter as cc on sr.chapter_id = cc.id WHERE ( (sr.chapter_id in (714,715,716) and from_verse_id is null and to_verse_id is null) or ( to_verse_id is null and sr.from_verse_id in (16494,16495,16496,16497,16498,16499,16500,16501,16502,16503,16504,16505,16506,16507,16508,16509,16510,16511,16512,16513,16514,16515,16516,16517,16518,16519,16520,16521,16522,16523,16524,16525,16526,16527,16528,16529,16530,16531,16532,16533,16534,16535,16536,16537,16538,16539,16540,16541,16542,16543,16544,16545,16546,16547,16548,16549,16550,16551,16552,16553,16554,16555,16556,16557,16558,16559,16560,16561,16562,16563,16564,16565,16566,16567,16568,16569,16570,16571,16572,16573,16574,16575,16576,16577,16578,16579) ) or ( to_verse_id is not null and sr.chapter_id = 714 and cb1.ordering <= 1 and cb2.ordering >= 31 ) or ( to_verse_id is not null and sr.chapter_id = 715 and cb1.ordering <= 1 and cb2.ordering >= 24 ) or ( to_verse_id is not null and sr.chapter_id = 716 and cb1.ordering <= 1 and cb2.ordering >= 31 )) and s.id = sr.show_id and e.visibilitydefault and s.embed_id = e.id limit 1) as t order by video_order1
Parameters:
[] |
3.17 ms (0.63%) |
1 |
SELECT rs.id, rs.name, rs.text, rs.closing_text, rs.image_file, rs.image_title, rs.video_link, rs.youtube_id, rs.video_notice, case when rl.name is null then r.name else rl.name end as plan_title, rs.ordering as step_order, rs.type_id, rs.work_id, rs.passage_id, rs.explanation_id FROM (select rsa.id, case when rsl.name is null then rsa.name else rsl.name end as name, rsa.readingplan_id, rsa.startverse_id, rsa.endverse_id, rsa.ordering, rsa.type_id, rsa.work_id, rsa.passage_id, rsa.explanation_id, case when rsl.text is null then rsa.text else rsl.text end as text, case when rsl.closing_text is null then rsa.closing_text else rsl.closing_text end as closing_text, i.file as image_file, i.title as image_title, e.location as video_link, e.youtube_id, e.notice as video_notice from readingplanstep rsa left join (select * from readingplanstep_language where language_id = 116) rsl on rsa.id = rsl.readingplanstep_id left join image i on rsa.image_id = i.id left join (select * from embed where visibilitydefault) e on rsa.embed_id = e.id) rs, readingplan r left join (select * from readingplan_language where language_id = 116) rl on r.id = rl.readingplan_id where r.url = 'new-christian-bible' and r.id = rs.readingplan_id and rs.ordering = 74
Parameters:
[] |
2.98 ms (0.59%) |
1 |
SELECT rs.id, rs.name, rs.text, rs.closing_text, rs.image_file, rs.image_title, rs.video_link, rs.youtube_id, rs.video_notice, case when rl.name is null then r.name else rl.name end as plan_title, rs.ordering as step_order, cb1.id as book_id, cc1.ordering as start_chapter_order, cv1.ordering as start_verse_order, cc2.ordering as end_chapter_order, cv2.ordering as end_verse_order FROM canonicalbibleverse cv1, canonicalbiblechapter cc1, canonicalbiblebook cb1, canonicalbibleverse cv2, canonicalbiblechapter cc2, (select rsa.id, case when rsl.name is null then rsa.name else rsl.name end as name, rsa.readingplan_id, rsa.startverse_id, rsa.endverse_id, rsa.ordering, case when rsl.text is null then rsa.text else rsl.text end as text, case when rsl.closing_text is null then rsa.closing_text else rsl.closing_text end as closing_text, i.file as image_file, i.title as image_title, e.location as video_link, e.youtube_id, e.notice as video_notice from readingplanstep rsa left join (select * from readingplanstep_language where language_id = 116) rsl on rsa.id = rsl.readingplanstep_id left join image i on rsa.image_id = i.id left join (select * from embed where visibilitydefault) e on rsa.embed_id = e.id) rs, readingplan r left join (select * from readingplan_language where language_id = 116) rl on r.id = rl.readingplan_id where r.url = 'new-christian-bible' and r.id = rs.readingplan_id and rs.ordering = 74 and cv1.id = rs.startverse_id and cv1.chapter_id = cc1.id and cb1.id = cc1.book_id and cv2.id = rs.endverse_id and cv2.chapter_id = cc2.id
Parameters:
[] |
2.97 ms (0.59%) |
1 |
SELECT bs.chapter_id, t.id as translation_id, t.url, t.is_modern, t.translatedtitle as explanationtitle, case when t.language_id = 150 then 2 else case when t.language_id = 116 then 3 else case when t.language_id = 123 then 5 else 6 end end end as lang_order FROM expositionwork w, expositiontranslation t, expositiontranslationtext tt, story_work sw, biblestory bs WHERE bs.chapter_id = 716 and sw.story_id = bs.id and w.id = sw.work_id and t.work_id=w.id and t.id = tt.translation_id and tt.text is not null and tt.text <> '' and (t.language_id in (150,116,123)) and w.ispublic AND t.ispublic order by lang_order, t.is_modern desc, t.islanguagedefault desc limit 1
Parameters:
[] |
2.45 ms (0.48%) |
4 |
SELECT id FROM language WHERE shortcode = 'nl' limit 1
Parameters:
[] |
1.42 ms (0.28%) |
2 |
select t.language_id, l.bibliographiccode, c.book_id, b.translation_id, v.chapter_id from bibleverse v, biblechapter c, biblebook b, bibletranslation t, language l where v.id = 1443001 and v.chapter_id = c.id and c.book_id = b.id and b.translation_id = t.id and t.language_id = l.id
Parameters:
[] |
1.17 ms (0.23%) |
1 |
SELECT array_to_string(array_agg( (CASE WHEN p.name is not null then p.name else (case when p.title is null then '' else p.title || ' ' end) || (case when p.firstname is null then '' else p.firstname || ' ' end) || (case when p.middlename is null then '' else p.middlename || ' ' end) || (case when p.lastname is null then '' else p.lastname || ' ' end) || (case when p.suffix is null then '' else p.suffix || ' ' end) end) ), ', ') as authors FROM translation_bibliographicdata tbg, bibliographicdata_person bp, person p WHERE tbg.translation_id = 16256 and tbg.bibliographicdata_id = bp.bibliographicdata_id and bp.person_id = p.id
Parameters:
[] |
0.91 ms (0.18%) |
2 |
SELECT l.text_style_override FROM language l, bibletranslation bt, biblebook b WHERE b.id = 3147 and b.translation_id = bt.id and l.id = bt.language_id
Parameters:
[] |
0.91 ms (0.18%) |
3 |
SELECT t0.id AS id_1, t0.indexDisplay AS indexdisplay_2, t0.ordering AS ordering_3, t0.content AS content_4, t0.contentVector AS contentvector_5, t0.chapter_id AS chapter_id_6, t0.verse_id AS verse_id_7 FROM bibleverse t0 WHERE t0.chapter_id = ? ORDER BY t0.ordering ASC
Parameters:
[
54338
]
|
0.79 ms (0.16%) |
1 |
select array_to_string(array_agg(DISTINCT d.ref_id),',') as ref from expositiontextunit t, expositiontranslationtext tt, expositiondisplayitem d where t.passage_id = 36741 and tt.translation_id = 62055 and t.id = tt.placement_id and d.container_id = tt.id and d.type_id = 2
Parameters:
[] |
0.76 ms (0.15%) |
1 |
SELECT t0.id AS id_1, t0.text AS text_2, t0.textVector AS textvector_3, t0.translation_id AS translation_id_4, t0.placement_id AS placement_id_5 FROM expositiontranslationtext t0 WHERE t0.placement_id = ?
Parameters:
[
74828
]
|
0.66 ms (0.13%) |
1 |
SELECT r.url as plan_url, rs.ordering as step_order FROM readingplan r, readingplanstep rs where r.id = 8 and r.id = rs.readingplan_id and rs.ordering > 74 order by rs.ordering limit 1
Parameters:
[] |
0.65 ms (0.13%) |
1 |
select shortcode, (case when nativename is not null and nativename <> '' then nativename else name end) as name FROM language where shortcode in ('en','sq','bg','zh','hr','cs','nl','fr','ka','de','hi','it','ja','ko','la','mk','ml','me','pt','ru','sr','es','sv','tl','uk','zu')
Parameters:
[] |
0.58 ms (0.12%) |
3 |
SELECT t0.id AS id_1, t0.ordering AS ordering_2, t0.chapter_id AS chapter_id_3 FROM canonicalbibleverse t0 WHERE t0.chapter_id = ? ORDER BY t0.ordering ASC
Parameters:
[
716
]
|
0.58 ms (0.11%) |
1 |
SELECT t0.id AS id_1, t0.languageDefault AS languagedefault_2, t0.name AS name_3, t0.abbreviation AS abbreviation_4, t0.copyright AS copyright_5, t0.notice AS notice_6, t0.license AS license_7, t0.url AS url_8, t0.enabled AS enabled_9, t0.language_id AS language_id_10 FROM bibletranslation t0 WHERE t0.url = ? AND t0.enabled = ? LIMIT 1
Parameters:
[ "german-luther-1912" 1 ] |
0.56 ms (0.11%) |
1 |
SELECT r.url as plan_url, rs.ordering as step_order FROM readingplan r, readingplanstep rs where r.url = 'new-christian-bible' and r.id = rs.readingplan_id and rs.ordering < 74 order by rs.ordering desc limit 1
Parameters:
[] |
0.49 ms (0.10%) |
3 |
SELECT t0.id AS id_1, t0.ordering AS ordering_2, t0.book_id AS book_id_3 FROM biblechapter t0 WHERE t0.id = ?
Parameters:
[
54338
]
|
0.48 ms (0.09%) |
1 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.url AS url_3, t0.ordering AS ordering_4, t0.work_id AS work_id_5, t0.superdivision_id AS superdivision_id_6 FROM expositiondivision t0 WHERE t0.work_id = ? ORDER BY t0.ordering ASC
Parameters:
[
10856
]
|
0.44 ms (0.09%) |
1 |
SELECT min(rs.ordering) as first_order, max(rs.ordering) as last_order FROM readingplan r, readingplanstep rs where r.url = 'new-christian-bible' and r.id = rs.readingplan_id
Parameters:
[] |
0.43 ms (0.08%) |
2 |
select id from language where shortcode = 'nl'
Parameters:
[] |
0.42 ms (0.08%) |
1 |
SELECT t.name FROM texttospeech t, texttospeechlanguage tl WHERE tl.language_id = 150 and t.id = tl.tts_id order by tl.is_standard desc limit 1
Parameters:
[] |
0.40 ms (0.08%) |
1 |
SELECT t0.id AS id_1, t0.ordering AS ordering_2, t0.title AS title_3, t0.swedenborgSection AS swedenborgsection_4, t0.division_id AS division_id_5 FROM expositionpassage t0 WHERE t0.division_id = ? ORDER BY t0.ordering ASC
Parameters:
[
10125
]
|
0.40 ms (0.08%) |
1 |
select (case when l.nativename is not null and l.nativename <> '' then l.nativename else l.name end) as language_name from expositiontranslation t, language l where t.id = 62055 and l.id = t.language_id
Parameters:
[] |
0.39 ms (0.08%) |
1 |
SELECT chapter_id, min(ordering) as min_order, max(ordering) as max_order from canonicalbibleverse WHERE id in (16494,16495,16496,16497,16498,16499,16500,16501,16502,16503,16504,16505,16506,16507,16508,16509,16510,16511,16512,16513,16514,16515,16516,16517,16518,16519,16520,16521,16522,16523,16524,16525,16526,16527,16528,16529,16530,16531,16532,16533,16534,16535,16536,16537,16538,16539,16540,16541,16542,16543,16544,16545,16546,16547,16548,16549,16550,16551,16552,16553,16554,16555,16556,16557,16558,16559,16560,16561,16562,16563,16564,16565,16566,16567,16568,16569,16570,16571,16572,16573,16574,16575,16576,16577,16578,16579) group by chapter_id
Parameters:
[] |
0.34 ms (0.07%) |
1 |
select array_to_string(array_agg(id), ',') from canonicalbiblechapter where id in (714,715,716) and id not in (select distinct chapter_id from canonicalbibleverse where chapter_id in (714,715,716) and id not in (16494,16495,16496,16497,16498,16499,16500,16501,16502,16503,16504,16505,16506,16507,16508,16509,16510,16511,16512,16513,16514,16515,16516,16517,16518,16519,16520,16521,16522,16523,16524,16525,16526,16527,16528,16529,16530,16531,16532,16533,16534,16535,16536,16537,16538,16539,16540,16541,16542,16543,16544,16545,16546,16547,16548,16549,16550,16551,16552,16553,16554,16555,16556,16557,16558,16559,16560,16561,16562,16563,16564,16565,16566,16567,16568,16569,16570,16571,16572,16573,16574,16575,16576,16577,16578,16579))
Parameters:
[] |
0.34 ms (0.07%) |
1 |
select t2.id from expositiontranslation t1, expositiontranslation t2 where t1.id = 62055 and t1.work_id = t2.work_id and t2.isoriginal order by case when t2.language_id = 123 then 1 else 2 end
Parameters:
[] |
0.33 ms (0.07%) |
1 |
SELECT t0.id AS id_1, t0.translatedTitle AS translatedtitle_2, t0.name AS name_3, t0.description AS description_4, t0.url AS url_5, t0.isPublic AS ispublic_6, t0.audience AS audience_7, t0.isOriginal AS isoriginal_8, t0.isLanguageDefault AS islanguagedefault_9, t0.type_id AS type_id_10, t0.translationmethod_id AS translationmethod_id_11, t0.public_file AS public_file_12, t0.doc_link AS doc_link_13, t0.work_id AS work_id_14, t0.language_id AS language_id_15 FROM expositiontranslation t0 WHERE t0.id = ? LIMIT 1
Parameters:
[
62055
]
|
0.33 ms (0.07%) |
1 |
SELECT t0.id AS id_1, t0.ordering AS ordering_2, t0.subsection AS subsection_3, t0.passage_id AS passage_id_4 FROM expositiontextunit t0 WHERE t0.passage_id = ? ORDER BY t0.ordering ASC
Parameters:
[
36741
]
|
0.30 ms (0.06%) |
1 |
select array_to_string(array_agg(distinct chapter_id), ',') from canonicalbibleverse where id in (16494,16495,16496,16497,16498,16499,16500,16501,16502,16503,16504,16505,16506,16507,16508,16509,16510,16511,16512,16513,16514,16515,16516,16517,16518,16519,16520,16521,16522,16523,16524,16525,16526,16527,16528,16529,16530,16531,16532,16533,16534,16535,16536,16537,16538,16539,16540,16541,16542,16543,16544,16545,16546,16547,16548,16549,16550,16551,16552,16553,16554,16555,16556,16557,16558,16559,16560,16561,16562,16563,16564,16565,16566,16567,16568,16569,16570,16571,16572,16573,16574,16575,16576,16577,16578,16579)
Parameters:
[] |
0.30 ms (0.06%) |
1 |
SELECT t0.id AS id_1, t0.title AS title_2, t0.fullTitle AS fulltitle_3, t0.description AS description_4, t0.url AS url_5, t0.isPublic AS ispublic_6, t0.audience AS audience_7, t0.swedenborgType AS swedenborgtype_8 FROM expositionwork t0 WHERE t0.id = ?
Parameters:
[
10856
]
|
0.28 ms (0.05%) |
1 |
SELECT t0.id AS id_1, t0.siteDefault AS sitedefault_2, t0.name AS name_3, t0.frenchName AS frenchname_4, t0.nativeName AS nativename_5, t0.bibliographicCode AS bibliographiccode_6, t0.terminologicCode AS terminologiccode_7, t0.shortCode AS shortcode_8, t0.rightToLeft AS righttoleft_9, t0.searchLibrary AS searchlibrary_10 FROM language t0 WHERE t0.id = ?
Parameters:
[
150
]
|
0.24 ms (0.05%) |
1 |
SELECT t0.id AS id_1, t0.ordering AS ordering_2, t0.book_id AS book_id_3 FROM canonicalbiblechapter t0 WHERE t0.book_id = ? ORDER BY t0.ordering ASC
Parameters:
[
7
]
|
0.23 ms (0.05%) |
1 |
SELECT t0.id AS id_1, t0.ordering AS ordering_2, t0.name AS name_3, t0.url AS url_4, t0.apocryphal AS apocryphal_5, t0.deuterocanonical AS deuterocanonical_6, t0.testament_id AS testament_id_7 FROM canonicalbiblebook t0 WHERE t0.id = ? LIMIT 1
Parameters:
[
7
]
|
0.21 ms (0.04%) |
1 |
SELECT t0.id AS id_1, t0.ordering AS ordering_2, t0.name AS name_3, t0.url AS url_4, t0.translation_id AS translation_id_5, t0.canonicalization_id AS canonicalization_id_6 FROM biblebook t0 WHERE t0.id = ?
Parameters:
[
3147
]
|
0.20 ms (0.04%) |
1 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.url AS url_3, t0.ordering AS ordering_4, t0.work_id AS work_id_5, t0.superdivision_id AS superdivision_id_6 FROM expositiondivision t0 WHERE t0.superdivision_id = ? ORDER BY t0.ordering ASC
Parameters:
[
10125
]
|
0.19 ms (0.04%) |
1 |
select id from readingplan where url = 'new-christian-bible'
Parameters:
[] |
0.17 ms (0.03%) |
1 |
SELECT text_style_override FROM language WHERE id = 62055
Parameters:
[] |
0.16 ms (0.03%) |
1 |
select show_bible_verse_highlights from language where id = 150
Parameters:
[] |
0.14 ms (0.03%) |
1 |
select language_id from expositiontranslation where id = 62055
Parameters:
[] |
0.13 ms (0.03%) |
1 |
select translationmethod_id from expositiontranslation where id = 62055
Parameters:
[] |
0.13 ms (0.03%) |
1 |
select show_bible_chapter_summary from language where id = 150
Parameters:
[] |
0.13 ms (0.03%) |
1 |
select language_id from bibletranslation where url = 'german-luther-1912'
Parameters:
[] |
Database Connections
Name | Service |
---|---|
default | doctrine.dbal.default_connection |
Entity Managers
Name | Service |
---|---|
default | doctrine.orm.default_entity_manager |
Second Level Cache
Second Level Cache is not enabled.
Entities Mapping
Class | Mapping errors |
---|---|
NCBS\WebsiteBundle\Entity\Bible\Translation | No errors. |
NCBS\WebsiteBundle\Entity\Language | No errors. |
NCBS\WebsiteBundle\Entity\Bible\Book | No errors. |
NCBS\WebsiteBundle\Entity\Bible\Canonical\Book | No errors. |
NCBS\WebsiteBundle\Entity\Bible\Canonical\Testament | No errors. |
NCBS\WebsiteBundle\Entity\Bible\Canonical\Chapter | No errors. |
NCBS\WebsiteBundle\Entity\Bible\Canonical\Verse | No errors. |
NCBS\WebsiteBundle\Entity\Exposition\Passage | No errors. |
NCBS\WebsiteBundle\Entity\Bible\Verse | No errors. |
NCBS\WebsiteBundle\Entity\Concepts\Concept | No errors. |
NCBS\WebsiteBundle\Entity\Bible\Chapter | No errors. |
NCBS\WebsiteBundle\Entity\Exposition\Translation | No errors. |
NCBS\WebsiteBundle\Entity\Exposition\Work | No errors. |
NCBS\WebsiteBundle\Entity\Bibliographic\BibliographicData | No errors. |
NCBS\WebsiteBundle\Entity\Exposition\Category | No errors. |
NCBS\WebsiteBundle\Entity\Bible\Stories\Story | No errors. |
NCBS\WebsiteBundle\Entity\Exposition\Division | No errors. |
NCBS\WebsiteBundle\Entity\Exposition\TextUnit | No errors. |
NCBS\WebsiteBundle\Entity\Relation\PassageMedia | No errors. |
NCBS\WebsiteBundle\Entity\Exposition\TranslationText | No errors. |
NCBS\WebsiteBundle\Entity\Reference\CombinedReference | No errors. |
NCBS\WebsiteBundle\Entity\Media\Image | No errors. |
NCBS\WebsiteBundle\Entity\Exposition\DisplayItem | No errors. |