3
10.01 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
653220
538850
618970
696273
593402
622376
709720
538868
574292
671882
618962
716078
568018
744443
560372
561740
581320
581273
707312
567988
618862
605329
746958
619406
694447
695243
707265
542469
694563
697263
563462
572579
622977
621025
697806
519227
593529
695629
705878
706946
693864
574216
586015
593514
590919
538837
545528
581313
587817
628329
610595
790392
571428
541924
556783
526111
662137
577378
577350
636268
628327
]
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 (653220 , 538850 , 618970 , 696273 , 593402 , 622376 , 709720 , 538868 , 574292 , 671882 , 618962 , 716078 , 568018 , 744443 , 560372 , 561740 , 581320 , 581273 , 707312 , 567988 , 618862 , 605329 , 746958 , 619406 , 694447 , 695243 , 707265 , 542469 , 694563 , 697263 , 563462 , 572579 , 622977 , 621025 , 697806 , 519227 , 593529 , 695629 , 705878 , 706946 , 693864 , 574216 , 586015 , 593514 , 590919 , 538837 , 545528 , 581313 , 587817 , 628329 , 610595 , 790392 , 571428 , 541924 , 556783 , 526111 , 662137 , 577378 , 577350 , 636268 , 628327 );
Copy
4
2.64 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
519227
526111
538837
538850
538868
541924
542469
545528
556783
560372
561740
563462
567988
568018
571428
572579
574216
574292
577350
577378
581273
581313
581320
586015
587817
590919
593402
593514
593529
605329
610595
618862
618962
618970
619406
621025
622376
622977
628327
628329
636268
653220
662137
671882
693864
694447
694563
695243
695629
696273
697263
697806
705878
706946
707265
707312
709720
716078
744443
746958
790392
]
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 (519227 , 526111 , 538837 , 538850 , 538868 , 541924 , 542469 , 545528 , 556783 , 560372 , 561740 , 563462 , 567988 , 568018 , 571428 , 572579 , 574216 , 574292 , 577350 , 577378 , 581273 , 581313 , 581320 , 586015 , 587817 , 590919 , 593402 , 593514 , 593529 , 605329 , 610595 , 618862 , 618962 , 618970 , 619406 , 621025 , 622376 , 622977 , 628327 , 628329 , 636268 , 653220 , 662137 , 671882 , 693864 , 694447 , 694563 , 695243 , 695629 , 696273 , 697263 , 697806 , 705878 , 706946 , 707265 , 707312 , 709720 , 716078 , 744443 , 746958 , 790392 );
Copy
5
84.89 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
519227
526111
538837
538850
538868
541924
542469
545528
556783
560372
561740
563462
567988
568018
571428
572579
574216
574292
577350
577378
581273
581313
581320
586015
587817
590919
593402
593514
593529
605329
610595
618862
618962
618970
619406
621025
622376
622977
628327
628329
636268
653220
662137
671882
693864
694447
694563
695243
695629
696273
697263
697806
705878
706946
707265
707312
709720
716078
744443
746958
790392
]
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 (519227 , 526111 , 538837 , 538850 , 538868 , 541924 , 542469 , 545528 , 556783 , 560372 , 561740 , 563462 , 567988 , 568018 , 571428 , 572579 , 574216 , 574292 , 577350 , 577378 , 581273 , 581313 , 581320 , 586015 , 587817 , 590919 , 593402 , 593514 , 593529 , 605329 , 610595 , 618862 , 618962 , 618970 , 619406 , 621025 , 622376 , 622977 , 628327 , 628329 , 636268 , 653220 , 662137 , 671882 , 693864 , 694447 , 694563 , 695243 , 695629 , 696273 , 697263 , 697806 , 705878 , 706946 , 707265 , 707312 , 709720 , 716078 , 744443 , 746958 , 790392 );
Copy