3
11.71 ms
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = ? LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = ? WHERE p . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
47854
398236
437452
447799
466203
466337
526027
490813
476288
130054
446762
471526
506845
585438
622249
423563
452828
600035
430469
444753
446330
451637
473846
474645
499084
748950
418861
457106
457331
426370
474830
520775
423503
507628
513042
518759
528076
421058
429137
485371
502703
494620
473900
557977
622223
462709
451263
476291
506143
558762
628175
618017
520729
478051
633718
618094
637729
633497
634769
497865
513539
542548
477230
468065
541646
559127
582248
582229
]
SELECT
p . post_id ,
p . user_id ,
p . content_id ,
p . public_key ,
p . search_field ,
p . cover ,
p . type ,
p . sexual_orientation ,
p . orientation ,
p . quality ,
p . noindex ,
p . nofollow ,
p . contents_num ,
p . duration ,
p . likes ,
p . dislikes ,
p . views ,
p . vote_rating ,
p . params ,
p . published_at ,
IFNULL (`r` . `title` , `f` . `title` ) as `title` ,
IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` ,
IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id`
AND `f` . `lang_id` = ?
LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id`
AND `r` . `lang_id` = ?
WHERE
p . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ?
)
Copy
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = 1 LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = 2 WHERE p . post_id IN (47854 , 398236 , 437452 , 447799 , 466203 , 466337 , 526027 , 490813 , 476288 , 130054 , 446762 , 471526 , 506845 , 585438 , 622249 , 423563 , 452828 , 600035 , 430469 , 444753 , 446330 , 451637 , 473846 , 474645 , 499084 , 748950 , 418861 , 457106 , 457331 , 426370 , 474830 , 520775 , 423503 , 507628 , 513042 , 518759 , 528076 , 421058 , 429137 , 485371 , 502703 , 494620 , 473900 , 557977 , 622223 , 462709 , 451263 , 476291 , 506143 , 558762 , 628175 , 618017 , 520729 , 478051 , 633718 , 618094 , 637729 , 633497 , 634769 , 497865 , 513539 , 542548 , 477230 , 468065 , 541646 , 559127 , 582248 , 582229 );
Copy
4
2.68 ms
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = ? LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = ? WHERE pht . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
47854
130054
398236
418861
421058
423503
423563
426370
429137
430469
437452
444753
446330
446762
447799
451263
451637
452828
457106
457331
462709
466203
466337
468065
471526
473846
473900
474645
474830
476288
476291
477230
478051
485371
490813
494620
497865
499084
502703
506143
506845
507628
513042
513539
518759
520729
520775
526027
528076
541646
542548
557977
558762
559127
582229
582248
585438
600035
618017
618094
622223
622249
628175
633497
633718
634769
637729
748950
]
SELECT
pht . post_id ,
pht . tag_id ,
t . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht . tag_id = t . tag_id
AND t . enabled = 1
LEFT JOIN tag_translation f ON t . tag_id = f . tag_id
AND f . lang_id = ?
LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id`
AND `r` . `lang_id` = ?
WHERE
pht . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ?
)
Copy
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = 1 LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = 2 WHERE pht . post_id IN (47854 , 130054 , 398236 , 418861 , 421058 , 423503 , 423563 , 426370 , 429137 , 430469 , 437452 , 444753 , 446330 , 446762 , 447799 , 451263 , 451637 , 452828 , 457106 , 457331 , 462709 , 466203 , 466337 , 468065 , 471526 , 473846 , 473900 , 474645 , 474830 , 476288 , 476291 , 477230 , 478051 , 485371 , 490813 , 494620 , 497865 , 499084 , 502703 , 506143 , 506845 , 507628 , 513042 , 513539 , 518759 , 520729 , 520775 , 526027 , 528076 , 541646 , 542548 , 557977 , 558762 , 559127 , 582229 , 582248 , 585438 , 600035 , 618017 , 618094 , 622223 , 622249 , 628175 , 633497 , 633718 , 634769 , 637729 , 748950 );
Copy
5
197.58 ms
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = ? LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = ? WHERE phc . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
47854
130054
398236
418861
421058
423503
423563
426370
429137
430469
437452
444753
446330
446762
447799
451263
451637
452828
457106
457331
462709
466203
466337
468065
471526
473846
473900
474645
474830
476288
476291
477230
478051
485371
490813
494620
497865
499084
502703
506143
506845
507628
513042
513539
518759
520729
520775
526027
528076
541646
542548
557977
558762
559127
582229
582248
585438
600035
618017
618094
622223
622249
628175
633497
633718
634769
637729
748950
]
SELECT
phc . post_id ,
phc . category_id ,
c . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc . category_id = c . category_id
AND c . enabled = 1
LEFT JOIN category_translation f ON c . category_id = f . category_id
AND f . lang_id = ?
LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id`
AND `r` . `lang_id` = ?
WHERE
phc . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ?
)
Copy
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = 1 LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = 2 WHERE phc . post_id IN (47854 , 130054 , 398236 , 418861 , 421058 , 423503 , 423563 , 426370 , 429137 , 430469 , 437452 , 444753 , 446330 , 446762 , 447799 , 451263 , 451637 , 452828 , 457106 , 457331 , 462709 , 466203 , 466337 , 468065 , 471526 , 473846 , 473900 , 474645 , 474830 , 476288 , 476291 , 477230 , 478051 , 485371 , 490813 , 494620 , 497865 , 499084 , 502703 , 506143 , 506845 , 507628 , 513042 , 513539 , 518759 , 520729 , 520775 , 526027 , 528076 , 541646 , 542548 , 557977 , 558762 , 559127 , 582229 , 582248 , 585438 , 600035 , 618017 , 618094 , 622223 , 622249 , 628175 , 633497 , 633718 , 634769 , 637729 , 748950 );
Copy