3
9.45 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
129748
386062
790965
641628
446942
716085
632594
408711
632580
642041
732406
632698
628396
96231
540334
668527
628410
634161
597275
614186
742848
714552
396334
627806
530018
565249
628379
628388
510180
597243
597236
790234
534386
634148
637026
630511
733894
733895
738440
697001
702675
530709
464162
552267
565243
647969
651188
565247
612831
597263
733909
644642
631196
474706
562374
565254
631972
601150
633749
565259
632649
630524
637008
628398
633497
701310
477097
591680
536584
545363
]
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 (129748 , 386062 , 790965 , 641628 , 446942 , 716085 , 632594 , 408711 , 632580 , 642041 , 732406 , 632698 , 628396 , 96231 , 540334 , 668527 , 628410 , 634161 , 597275 , 614186 , 742848 , 714552 , 396334 , 627806 , 530018 , 565249 , 628379 , 628388 , 510180 , 597243 , 597236 , 790234 , 534386 , 634148 , 637026 , 630511 , 733894 , 733895 , 738440 , 697001 , 702675 , 530709 , 464162 , 552267 , 565243 , 647969 , 651188 , 565247 , 612831 , 597263 , 733909 , 644642 , 631196 , 474706 , 562374 , 565254 , 631972 , 601150 , 633749 , 565259 , 632649 , 630524 , 637008 , 628398 , 633497 , 701310 , 477097 , 591680 , 536584 , 545363 );
Copy
4
2.97 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
96231
129748
386062
396334
408711
446942
464162
474706
477097
510180
530018
530709
534386
536584
540334
545363
552267
562374
565243
565247
565249
565254
565259
591680
597236
597243
597263
597275
601150
612831
614186
627806
628379
628388
628396
628398
628410
630511
630524
631196
631972
632580
632594
632649
632698
633497
633749
634148
634161
637008
637026
641628
642041
644642
647969
651188
668527
697001
701310
702675
714552
716085
732406
733894
733895
733909
738440
742848
790234
790965
]
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 (96231 , 129748 , 386062 , 396334 , 408711 , 446942 , 464162 , 474706 , 477097 , 510180 , 530018 , 530709 , 534386 , 536584 , 540334 , 545363 , 552267 , 562374 , 565243 , 565247 , 565249 , 565254 , 565259 , 591680 , 597236 , 597243 , 597263 , 597275 , 601150 , 612831 , 614186 , 627806 , 628379 , 628388 , 628396 , 628398 , 628410 , 630511 , 630524 , 631196 , 631972 , 632580 , 632594 , 632649 , 632698 , 633497 , 633749 , 634148 , 634161 , 637008 , 637026 , 641628 , 642041 , 644642 , 647969 , 651188 , 668527 , 697001 , 701310 , 702675 , 714552 , 716085 , 732406 , 733894 , 733895 , 733909 , 738440 , 742848 , 790234 , 790965 );
Copy
5
112.28 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
96231
129748
386062
396334
408711
446942
464162
474706
477097
510180
530018
530709
534386
536584
540334
545363
552267
562374
565243
565247
565249
565254
565259
591680
597236
597243
597263
597275
601150
612831
614186
627806
628379
628388
628396
628398
628410
630511
630524
631196
631972
632580
632594
632649
632698
633497
633749
634148
634161
637008
637026
641628
642041
644642
647969
651188
668527
697001
701310
702675
714552
716085
732406
733894
733895
733909
738440
742848
790234
790965
]
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 (96231 , 129748 , 386062 , 396334 , 408711 , 446942 , 464162 , 474706 , 477097 , 510180 , 530018 , 530709 , 534386 , 536584 , 540334 , 545363 , 552267 , 562374 , 565243 , 565247 , 565249 , 565254 , 565259 , 591680 , 597236 , 597243 , 597263 , 597275 , 601150 , 612831 , 614186 , 627806 , 628379 , 628388 , 628396 , 628398 , 628410 , 630511 , 630524 , 631196 , 631972 , 632580 , 632594 , 632649 , 632698 , 633497 , 633749 , 634148 , 634161 , 637008 , 637026 , 641628 , 642041 , 644642 , 647969 , 651188 , 668527 , 697001 , 701310 , 702675 , 714552 , 716085 , 732406 , 733894 , 733895 , 733909 , 738440 , 742848 , 790234 , 790965 );
Copy