3
8.23 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
763496
627314
794437
804249
827648
536080
558322
661007
778529
779297
736658
783204
744380
738286
745457
435830
536118
557896
575391
705696
577983
609058
610261
616795
634358
793127
806413
750471
773272
782093
802339
434382
400449
444495
722718
814181
449931
534858
528540
540894
550175
663190
620318
776080
439333
525453
484997
523805
524126
480119
580850
552312
710221
587567
603993
778304
435554
522978
601358
604631
475367
522319
495319
612261
511244
605117
599644
625437
]
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 (763496 , 627314 , 794437 , 804249 , 827648 , 536080 , 558322 , 661007 , 778529 , 779297 , 736658 , 783204 , 744380 , 738286 , 745457 , 435830 , 536118 , 557896 , 575391 , 705696 , 577983 , 609058 , 610261 , 616795 , 634358 , 793127 , 806413 , 750471 , 773272 , 782093 , 802339 , 434382 , 400449 , 444495 , 722718 , 814181 , 449931 , 534858 , 528540 , 540894 , 550175 , 663190 , 620318 , 776080 , 439333 , 525453 , 484997 , 523805 , 524126 , 480119 , 580850 , 552312 , 710221 , 587567 , 603993 , 778304 , 435554 , 522978 , 601358 , 604631 , 475367 , 522319 , 495319 , 612261 , 511244 , 605117 , 599644 , 625437 );
Copy
4
4.39 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
400449
434382
435554
435830
439333
444495
449931
475367
480119
484997
495319
511244
522319
522978
523805
524126
525453
528540
534858
536080
536118
540894
550175
552312
557896
558322
575391
577983
580850
587567
599644
601358
603993
604631
605117
609058
610261
612261
616795
620318
625437
627314
634358
661007
663190
705696
710221
722718
736658
738286
744380
745457
750471
763496
773272
776080
778304
778529
779297
782093
783204
793127
794437
802339
804249
806413
814181
827648
]
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 (400449 , 434382 , 435554 , 435830 , 439333 , 444495 , 449931 , 475367 , 480119 , 484997 , 495319 , 511244 , 522319 , 522978 , 523805 , 524126 , 525453 , 528540 , 534858 , 536080 , 536118 , 540894 , 550175 , 552312 , 557896 , 558322 , 575391 , 577983 , 580850 , 587567 , 599644 , 601358 , 603993 , 604631 , 605117 , 609058 , 610261 , 612261 , 616795 , 620318 , 625437 , 627314 , 634358 , 661007 , 663190 , 705696 , 710221 , 722718 , 736658 , 738286 , 744380 , 745457 , 750471 , 763496 , 773272 , 776080 , 778304 , 778529 , 779297 , 782093 , 783204 , 793127 , 794437 , 802339 , 804249 , 806413 , 814181 , 827648 );
Copy
5
95.45 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
400449
434382
435554
435830
439333
444495
449931
475367
480119
484997
495319
511244
522319
522978
523805
524126
525453
528540
534858
536080
536118
540894
550175
552312
557896
558322
575391
577983
580850
587567
599644
601358
603993
604631
605117
609058
610261
612261
616795
620318
625437
627314
634358
661007
663190
705696
710221
722718
736658
738286
744380
745457
750471
763496
773272
776080
778304
778529
779297
782093
783204
793127
794437
802339
804249
806413
814181
827648
]
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 (400449 , 434382 , 435554 , 435830 , 439333 , 444495 , 449931 , 475367 , 480119 , 484997 , 495319 , 511244 , 522319 , 522978 , 523805 , 524126 , 525453 , 528540 , 534858 , 536080 , 536118 , 540894 , 550175 , 552312 , 557896 , 558322 , 575391 , 577983 , 580850 , 587567 , 599644 , 601358 , 603993 , 604631 , 605117 , 609058 , 610261 , 612261 , 616795 , 620318 , 625437 , 627314 , 634358 , 661007 , 663190 , 705696 , 710221 , 722718 , 736658 , 738286 , 744380 , 745457 , 750471 , 763496 , 773272 , 776080 , 778304 , 778529 , 779297 , 782093 , 783204 , 793127 , 794437 , 802339 , 804249 , 806413 , 814181 , 827648 );
Copy