3
11.04 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
532827
528295
588337
812555
392923
529865
582025
765672
788319
781922
607690
812383
807405
391923
537827
710374
778521
523599
804802
758155
467922
512997
561036
670367
544799
392676
555055
517703
562405
545345
577313
686315
725475
746144
620755
777094
464667
487944
517525
580914
561021
593384
537167
672950
751470
810118
487945
519625
560385
591997
469393
526189
550827
678716
613780
607640
479107
467118
444917
465431
576157
509988
452363
520911
]
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 (532827 , 528295 , 588337 , 812555 , 392923 , 529865 , 582025 , 765672 , 788319 , 781922 , 607690 , 812383 , 807405 , 391923 , 537827 , 710374 , 778521 , 523599 , 804802 , 758155 , 467922 , 512997 , 561036 , 670367 , 544799 , 392676 , 555055 , 517703 , 562405 , 545345 , 577313 , 686315 , 725475 , 746144 , 620755 , 777094 , 464667 , 487944 , 517525 , 580914 , 561021 , 593384 , 537167 , 672950 , 751470 , 810118 , 487945 , 519625 , 560385 , 591997 , 469393 , 526189 , 550827 , 678716 , 613780 , 607640 , 479107 , 467118 , 444917 , 465431 , 576157 , 509988 , 452363 , 520911 );
Copy
4
2.49 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
391923
392676
392923
444917
452363
464667
465431
467118
467922
469393
479107
487944
487945
509988
512997
517525
517703
519625
520911
523599
526189
528295
529865
532827
537167
537827
544799
545345
550827
555055
560385
561021
561036
562405
576157
577313
580914
582025
588337
591997
593384
607640
607690
613780
620755
670367
672950
678716
686315
710374
725475
746144
751470
758155
765672
777094
778521
781922
788319
804802
807405
810118
812383
812555
]
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 (391923 , 392676 , 392923 , 444917 , 452363 , 464667 , 465431 , 467118 , 467922 , 469393 , 479107 , 487944 , 487945 , 509988 , 512997 , 517525 , 517703 , 519625 , 520911 , 523599 , 526189 , 528295 , 529865 , 532827 , 537167 , 537827 , 544799 , 545345 , 550827 , 555055 , 560385 , 561021 , 561036 , 562405 , 576157 , 577313 , 580914 , 582025 , 588337 , 591997 , 593384 , 607640 , 607690 , 613780 , 620755 , 670367 , 672950 , 678716 , 686315 , 710374 , 725475 , 746144 , 751470 , 758155 , 765672 , 777094 , 778521 , 781922 , 788319 , 804802 , 807405 , 810118 , 812383 , 812555 );
Copy
5
101.14 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
391923
392676
392923
444917
452363
464667
465431
467118
467922
469393
479107
487944
487945
509988
512997
517525
517703
519625
520911
523599
526189
528295
529865
532827
537167
537827
544799
545345
550827
555055
560385
561021
561036
562405
576157
577313
580914
582025
588337
591997
593384
607640
607690
613780
620755
670367
672950
678716
686315
710374
725475
746144
751470
758155
765672
777094
778521
781922
788319
804802
807405
810118
812383
812555
]
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 (391923 , 392676 , 392923 , 444917 , 452363 , 464667 , 465431 , 467118 , 467922 , 469393 , 479107 , 487944 , 487945 , 509988 , 512997 , 517525 , 517703 , 519625 , 520911 , 523599 , 526189 , 528295 , 529865 , 532827 , 537167 , 537827 , 544799 , 545345 , 550827 , 555055 , 560385 , 561021 , 561036 , 562405 , 576157 , 577313 , 580914 , 582025 , 588337 , 591997 , 593384 , 607640 , 607690 , 613780 , 620755 , 670367 , 672950 , 678716 , 686315 , 710374 , 725475 , 746144 , 751470 , 758155 , 765672 , 777094 , 778521 , 781922 , 788319 , 804802 , 807405 , 810118 , 812383 , 812555 );
Copy