3
11.49 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
612306
645297
505706
636413
568184
522177
550159
556696
546096
496005
496394
605658
531549
523926
574442
606020
617144
528679
550658
588973
616986
599709
631735
590309
517185
497853
550478
555532
563047
673574
553615
615653
620567
456477
523732
531556
500084
526089
486174
553156
560707
591361
591376
586038
605420
588439
485540
484217
486176
478326
509234
509598
514761
520617
553205
600737
593002
596769
566415
555667
576966
476674
505796
520618
542870
572006
589486
521510
577488
571715
599529
624375
502540
528029
521508
]
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 (612306 , 645297 , 505706 , 636413 , 568184 , 522177 , 550159 , 556696 , 546096 , 496005 , 496394 , 605658 , 531549 , 523926 , 574442 , 606020 , 617144 , 528679 , 550658 , 588973 , 616986 , 599709 , 631735 , 590309 , 517185 , 497853 , 550478 , 555532 , 563047 , 673574 , 553615 , 615653 , 620567 , 456477 , 523732 , 531556 , 500084 , 526089 , 486174 , 553156 , 560707 , 591361 , 591376 , 586038 , 605420 , 588439 , 485540 , 484217 , 486176 , 478326 , 509234 , 509598 , 514761 , 520617 , 553205 , 600737 , 593002 , 596769 , 566415 , 555667 , 576966 , 476674 , 505796 , 520618 , 542870 , 572006 , 589486 , 521510 , 577488 , 571715 , 599529 , 624375 , 502540 , 528029 , 521508 );
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
456477
476674
478326
484217
485540
486174
486176
496005
496394
497853
500084
502540
505706
505796
509234
509598
514761
517185
520617
520618
521508
521510
522177
523732
523926
526089
528029
528679
531549
531556
542870
546096
550159
550478
550658
553156
553205
553615
555532
555667
556696
560707
563047
566415
568184
571715
572006
574442
576966
577488
586038
588439
588973
589486
590309
591361
591376
593002
596769
599529
599709
600737
605420
605658
606020
612306
615653
616986
617144
620567
624375
631735
636413
645297
673574
]
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 (456477 , 476674 , 478326 , 484217 , 485540 , 486174 , 486176 , 496005 , 496394 , 497853 , 500084 , 502540 , 505706 , 505796 , 509234 , 509598 , 514761 , 517185 , 520617 , 520618 , 521508 , 521510 , 522177 , 523732 , 523926 , 526089 , 528029 , 528679 , 531549 , 531556 , 542870 , 546096 , 550159 , 550478 , 550658 , 553156 , 553205 , 553615 , 555532 , 555667 , 556696 , 560707 , 563047 , 566415 , 568184 , 571715 , 572006 , 574442 , 576966 , 577488 , 586038 , 588439 , 588973 , 589486 , 590309 , 591361 , 591376 , 593002 , 596769 , 599529 , 599709 , 600737 , 605420 , 605658 , 606020 , 612306 , 615653 , 616986 , 617144 , 620567 , 624375 , 631735 , 636413 , 645297 , 673574 );
Copy
5
104.87 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
456477
476674
478326
484217
485540
486174
486176
496005
496394
497853
500084
502540
505706
505796
509234
509598
514761
517185
520617
520618
521508
521510
522177
523732
523926
526089
528029
528679
531549
531556
542870
546096
550159
550478
550658
553156
553205
553615
555532
555667
556696
560707
563047
566415
568184
571715
572006
574442
576966
577488
586038
588439
588973
589486
590309
591361
591376
593002
596769
599529
599709
600737
605420
605658
606020
612306
615653
616986
617144
620567
624375
631735
636413
645297
673574
]
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 (456477 , 476674 , 478326 , 484217 , 485540 , 486174 , 486176 , 496005 , 496394 , 497853 , 500084 , 502540 , 505706 , 505796 , 509234 , 509598 , 514761 , 517185 , 520617 , 520618 , 521508 , 521510 , 522177 , 523732 , 523926 , 526089 , 528029 , 528679 , 531549 , 531556 , 542870 , 546096 , 550159 , 550478 , 550658 , 553156 , 553205 , 553615 , 555532 , 555667 , 556696 , 560707 , 563047 , 566415 , 568184 , 571715 , 572006 , 574442 , 576966 , 577488 , 586038 , 588439 , 588973 , 589486 , 590309 , 591361 , 591376 , 593002 , 596769 , 599529 , 599709 , 600737 , 605420 , 605658 , 606020 , 612306 , 615653 , 616986 , 617144 , 620567 , 624375 , 631735 , 636413 , 645297 , 673574 );
Copy