3
16.98 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
424193
401015
452378
474447
467837
510771
489709
474826
503863
555068
555129
667647
549699
534594
703492
444041
454052
530000
534709
474821
498405
498457
538064
496902
503418
473627
712557
614065
448255
445475
504482
510881
488541
472119
468039
516324
486863
421580
520701
381783
467552
684704
455599
494496
556661
486875
440620
454777
517790
502841
556655
716882
599631
643079
505107
498056
474509
620236
630771
517769
566079
541379
556778
600837
519023
541419
457676
513047
]
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 (424193 , 401015 , 452378 , 474447 , 467837 , 510771 , 489709 , 474826 , 503863 , 555068 , 555129 , 667647 , 549699 , 534594 , 703492 , 444041 , 454052 , 530000 , 534709 , 474821 , 498405 , 498457 , 538064 , 496902 , 503418 , 473627 , 712557 , 614065 , 448255 , 445475 , 504482 , 510881 , 488541 , 472119 , 468039 , 516324 , 486863 , 421580 , 520701 , 381783 , 467552 , 684704 , 455599 , 494496 , 556661 , 486875 , 440620 , 454777 , 517790 , 502841 , 556655 , 716882 , 599631 , 643079 , 505107 , 498056 , 474509 , 620236 , 630771 , 517769 , 566079 , 541379 , 556778 , 600837 , 519023 , 541419 , 457676 , 513047 );
Copy
4
2.14 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
381783
401015
421580
424193
440620
444041
445475
448255
452378
454052
454777
455599
457676
467552
467837
468039
472119
473627
474447
474509
474821
474826
486863
486875
488541
489709
494496
496902
498056
498405
498457
502841
503418
503863
504482
505107
510771
510881
513047
516324
517769
517790
519023
520701
530000
534594
534709
538064
541379
541419
549699
555068
555129
556655
556661
556778
566079
599631
600837
614065
620236
630771
643079
667647
684704
703492
712557
716882
]
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 (381783 , 401015 , 421580 , 424193 , 440620 , 444041 , 445475 , 448255 , 452378 , 454052 , 454777 , 455599 , 457676 , 467552 , 467837 , 468039 , 472119 , 473627 , 474447 , 474509 , 474821 , 474826 , 486863 , 486875 , 488541 , 489709 , 494496 , 496902 , 498056 , 498405 , 498457 , 502841 , 503418 , 503863 , 504482 , 505107 , 510771 , 510881 , 513047 , 516324 , 517769 , 517790 , 519023 , 520701 , 530000 , 534594 , 534709 , 538064 , 541379 , 541419 , 549699 , 555068 , 555129 , 556655 , 556661 , 556778 , 566079 , 599631 , 600837 , 614065 , 620236 , 630771 , 643079 , 667647 , 684704 , 703492 , 712557 , 716882 );
Copy
5
88.60 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
381783
401015
421580
424193
440620
444041
445475
448255
452378
454052
454777
455599
457676
467552
467837
468039
472119
473627
474447
474509
474821
474826
486863
486875
488541
489709
494496
496902
498056
498405
498457
502841
503418
503863
504482
505107
510771
510881
513047
516324
517769
517790
519023
520701
530000
534594
534709
538064
541379
541419
549699
555068
555129
556655
556661
556778
566079
599631
600837
614065
620236
630771
643079
667647
684704
703492
712557
716882
]
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 (381783 , 401015 , 421580 , 424193 , 440620 , 444041 , 445475 , 448255 , 452378 , 454052 , 454777 , 455599 , 457676 , 467552 , 467837 , 468039 , 472119 , 473627 , 474447 , 474509 , 474821 , 474826 , 486863 , 486875 , 488541 , 489709 , 494496 , 496902 , 498056 , 498405 , 498457 , 502841 , 503418 , 503863 , 504482 , 505107 , 510771 , 510881 , 513047 , 516324 , 517769 , 517790 , 519023 , 520701 , 530000 , 534594 , 534709 , 538064 , 541379 , 541419 , 549699 , 555068 , 555129 , 556655 , 556661 , 556778 , 566079 , 599631 , 600837 , 614065 , 620236 , 630771 , 643079 , 667647 , 684704 , 703492 , 712557 , 716882 );
Copy