3
9.84 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
495766
603178
660882
390362
123790
490833
694157
822016
696568
659322
822955
822219
818965
659311
603232
719640
413099
484863
660866
548725
661278
661291
775919
123994
578371
495701
661259
726342
578385
484844
741862
490008
490019
407290
523321
465633
578393
659321
557940
607093
389980
490023
578384
694154
595786
661250
578388
661237
487054
523684
578376
578382
642662
490836
390888
489998
488567
607071
622223
583675
580335
578389
661268
603128
591620
471365
622255
659325
490852
]
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 (495766 , 603178 , 660882 , 390362 , 123790 , 490833 , 694157 , 822016 , 696568 , 659322 , 822955 , 822219 , 818965 , 659311 , 603232 , 719640 , 413099 , 484863 , 660866 , 548725 , 661278 , 661291 , 775919 , 123994 , 578371 , 495701 , 661259 , 726342 , 578385 , 484844 , 741862 , 490008 , 490019 , 407290 , 523321 , 465633 , 578393 , 659321 , 557940 , 607093 , 389980 , 490023 , 578384 , 694154 , 595786 , 661250 , 578388 , 661237 , 487054 , 523684 , 578376 , 578382 , 642662 , 490836 , 390888 , 489998 , 488567 , 607071 , 622223 , 583675 , 580335 , 578389 , 661268 , 603128 , 591620 , 471365 , 622255 , 659325 , 490852 );
Copy
4
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
123790
123994
389980
390362
390888
407290
413099
465633
471365
484844
484863
487054
488567
489998
490008
490019
490023
490833
490836
490852
495701
495766
523321
523684
548725
557940
578371
578376
578382
578384
578385
578388
578389
578393
580335
583675
591620
595786
603128
603178
603232
607071
607093
622223
622255
642662
659311
659321
659322
659325
660866
660882
661237
661250
661259
661268
661278
661291
694154
694157
696568
719640
726342
741862
775919
818965
822016
822219
822955
]
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 (123790 , 123994 , 389980 , 390362 , 390888 , 407290 , 413099 , 465633 , 471365 , 484844 , 484863 , 487054 , 488567 , 489998 , 490008 , 490019 , 490023 , 490833 , 490836 , 490852 , 495701 , 495766 , 523321 , 523684 , 548725 , 557940 , 578371 , 578376 , 578382 , 578384 , 578385 , 578388 , 578389 , 578393 , 580335 , 583675 , 591620 , 595786 , 603128 , 603178 , 603232 , 607071 , 607093 , 622223 , 622255 , 642662 , 659311 , 659321 , 659322 , 659325 , 660866 , 660882 , 661237 , 661250 , 661259 , 661268 , 661278 , 661291 , 694154 , 694157 , 696568 , 719640 , 726342 , 741862 , 775919 , 818965 , 822016 , 822219 , 822955 );
Copy
5
82.70 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
123790
123994
389980
390362
390888
407290
413099
465633
471365
484844
484863
487054
488567
489998
490008
490019
490023
490833
490836
490852
495701
495766
523321
523684
548725
557940
578371
578376
578382
578384
578385
578388
578389
578393
580335
583675
591620
595786
603128
603178
603232
607071
607093
622223
622255
642662
659311
659321
659322
659325
660866
660882
661237
661250
661259
661268
661278
661291
694154
694157
696568
719640
726342
741862
775919
818965
822016
822219
822955
]
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 (123790 , 123994 , 389980 , 390362 , 390888 , 407290 , 413099 , 465633 , 471365 , 484844 , 484863 , 487054 , 488567 , 489998 , 490008 , 490019 , 490023 , 490833 , 490836 , 490852 , 495701 , 495766 , 523321 , 523684 , 548725 , 557940 , 578371 , 578376 , 578382 , 578384 , 578385 , 578388 , 578389 , 578393 , 580335 , 583675 , 591620 , 595786 , 603128 , 603178 , 603232 , 607071 , 607093 , 622223 , 622255 , 642662 , 659311 , 659321 , 659322 , 659325 , 660866 , 660882 , 661237 , 661250 , 661259 , 661268 , 661278 , 661291 , 694154 , 694157 , 696568 , 719640 , 726342 , 741862 , 775919 , 818965 , 822016 , 822219 , 822955 );
Copy