4
8.64 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
634929
731874
565194
428965
404127
529035
451499
383493
460217
467120
559212
780243
467109
815133
673345
385102
580438
750241
641999
470511
597017
784528
382134
452269
592461
536888
634607
633145
700631
521037
450484
481285
500207
523122
516687
580615
805023
493231
453623
360439
489373
624351
445615
534779
429137
504209
576651
670959
518945
522212
558012
522876
472910
462171
462606
666819
469601
458244
446109
557676
410254
519576
492340
730798
]
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 (634929 , 731874 , 565194 , 428965 , 404127 , 529035 , 451499 , 383493 , 460217 , 467120 , 559212 , 780243 , 467109 , 815133 , 673345 , 385102 , 580438 , 750241 , 641999 , 470511 , 597017 , 784528 , 382134 , 452269 , 592461 , 536888 , 634607 , 633145 , 700631 , 521037 , 450484 , 481285 , 500207 , 523122 , 516687 , 580615 , 805023 , 493231 , 453623 , 360439 , 489373 , 624351 , 445615 , 534779 , 429137 , 504209 , 576651 , 670959 , 518945 , 522212 , 558012 , 522876 , 472910 , 462171 , 462606 , 666819 , 469601 , 458244 , 446109 , 557676 , 410254 , 519576 , 492340 , 730798 );
Copy
5
2.62 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
360439
382134
383493
385102
404127
410254
428965
429137
445615
446109
450484
451499
452269
453623
458244
460217
462171
462606
467109
467120
469601
470511
472910
481285
489373
492340
493231
500207
504209
516687
518945
519576
521037
522212
522876
523122
529035
534779
536888
557676
558012
559212
565194
576651
580438
580615
592461
597017
624351
633145
634607
634929
641999
666819
670959
673345
700631
730798
731874
750241
780243
784528
805023
815133
]
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 (360439 , 382134 , 383493 , 385102 , 404127 , 410254 , 428965 , 429137 , 445615 , 446109 , 450484 , 451499 , 452269 , 453623 , 458244 , 460217 , 462171 , 462606 , 467109 , 467120 , 469601 , 470511 , 472910 , 481285 , 489373 , 492340 , 493231 , 500207 , 504209 , 516687 , 518945 , 519576 , 521037 , 522212 , 522876 , 523122 , 529035 , 534779 , 536888 , 557676 , 558012 , 559212 , 565194 , 576651 , 580438 , 580615 , 592461 , 597017 , 624351 , 633145 , 634607 , 634929 , 641999 , 666819 , 670959 , 673345 , 700631 , 730798 , 731874 , 750241 , 780243 , 784528 , 805023 , 815133 );
Copy
6
109.44 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
360439
382134
383493
385102
404127
410254
428965
429137
445615
446109
450484
451499
452269
453623
458244
460217
462171
462606
467109
467120
469601
470511
472910
481285
489373
492340
493231
500207
504209
516687
518945
519576
521037
522212
522876
523122
529035
534779
536888
557676
558012
559212
565194
576651
580438
580615
592461
597017
624351
633145
634607
634929
641999
666819
670959
673345
700631
730798
731874
750241
780243
784528
805023
815133
]
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 (360439 , 382134 , 383493 , 385102 , 404127 , 410254 , 428965 , 429137 , 445615 , 446109 , 450484 , 451499 , 452269 , 453623 , 458244 , 460217 , 462171 , 462606 , 467109 , 467120 , 469601 , 470511 , 472910 , 481285 , 489373 , 492340 , 493231 , 500207 , 504209 , 516687 , 518945 , 519576 , 521037 , 522212 , 522876 , 523122 , 529035 , 534779 , 536888 , 557676 , 558012 , 559212 , 565194 , 576651 , 580438 , 580615 , 592461 , 597017 , 624351 , 633145 , 634607 , 634929 , 641999 , 666819 , 670959 , 673345 , 700631 , 730798 , 731874 , 750241 , 780243 , 784528 , 805023 , 815133 );
Copy