3
9.95 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
477587
584362
534215
496842
623262
398426
734844
768258
744227
533013
675008
597216
633502
742457
476646
545514
434771
639060
707556
807591
745466
750908
476797
653720
595214
753033
555020
571042
547751
604621
603814
418520
513615
639810
626588
650155
508150
587124
730074
793187
812372
738464
568379
805139
560402
582281
516941
517810
418130
415753
547779
715790
477588
640530
641949
432637
475407
472619
714927
437960
493587
596235
529794
560409
647893
]
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 (477587 , 584362 , 534215 , 496842 , 623262 , 398426 , 734844 , 768258 , 744227 , 533013 , 675008 , 597216 , 633502 , 742457 , 476646 , 545514 , 434771 , 639060 , 707556 , 807591 , 745466 , 750908 , 476797 , 653720 , 595214 , 753033 , 555020 , 571042 , 547751 , 604621 , 603814 , 418520 , 513615 , 639810 , 626588 , 650155 , 508150 , 587124 , 730074 , 793187 , 812372 , 738464 , 568379 , 805139 , 560402 , 582281 , 516941 , 517810 , 418130 , 415753 , 547779 , 715790 , 477588 , 640530 , 641949 , 432637 , 475407 , 472619 , 714927 , 437960 , 493587 , 596235 , 529794 , 560409 , 647893 );
Copy
4
3.34 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
398426
415753
418130
418520
432637
434771
437960
472619
475407
476646
476797
477587
477588
493587
496842
508150
513615
516941
517810
529794
533013
534215
545514
547751
547779
555020
560402
560409
568379
571042
582281
584362
587124
595214
596235
597216
603814
623262
626588
633502
639060
639810
640530
641949
647893
650155
653720
675008
707556
714927
715790
730074
734844
738464
742457
744227
745466
750908
753033
768258
793187
805139
807591
812372
]
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 (398426 , 415753 , 418130 , 418520 , 432637 , 434771 , 437960 , 472619 , 475407 , 476646 , 476797 , 477587 , 477588 , 493587 , 496842 , 508150 , 513615 , 516941 , 517810 , 529794 , 533013 , 534215 , 545514 , 547751 , 547779 , 555020 , 560402 , 560409 , 568379 , 571042 , 582281 , 584362 , 587124 , 595214 , 596235 , 597216 , 603814 , 623262 , 626588 , 633502 , 639060 , 639810 , 640530 , 641949 , 647893 , 650155 , 653720 , 675008 , 707556 , 714927 , 715790 , 730074 , 734844 , 738464 , 742457 , 744227 , 745466 , 750908 , 753033 , 768258 , 793187 , 805139 , 807591 , 812372 );
Copy
5
73.92 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
398426
415753
418130
418520
432637
434771
437960
472619
475407
476646
476797
477587
477588
493587
496842
508150
513615
516941
517810
529794
533013
534215
545514
547751
547779
555020
560402
560409
568379
571042
582281
584362
587124
595214
596235
597216
603814
623262
626588
633502
639060
639810
640530
641949
647893
650155
653720
675008
707556
714927
715790
730074
734844
738464
742457
744227
745466
750908
753033
768258
793187
805139
807591
812372
]
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 (398426 , 415753 , 418130 , 418520 , 432637 , 434771 , 437960 , 472619 , 475407 , 476646 , 476797 , 477587 , 477588 , 493587 , 496842 , 508150 , 513615 , 516941 , 517810 , 529794 , 533013 , 534215 , 545514 , 547751 , 547779 , 555020 , 560402 , 560409 , 568379 , 571042 , 582281 , 584362 , 587124 , 595214 , 596235 , 597216 , 603814 , 623262 , 626588 , 633502 , 639060 , 639810 , 640530 , 641949 , 647893 , 650155 , 653720 , 675008 , 707556 , 714927 , 715790 , 730074 , 734844 , 738464 , 742457 , 744227 , 745466 , 750908 , 753033 , 768258 , 793187 , 805139 , 807591 , 812372 );
Copy