3
11.16 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
485894
608456
754134
784888
587837
729641
740281
750276
601974
617684
733309
742370
778887
603025
401915
438025
533470
636587
764711
433981
411559
696455
441897
709914
599615
532006
507783
757501
438730
421655
543437
716954
780507
397528
449657
521153
385496
577899
587171
600395
516432
457622
793494
481802
532826
529134
573391
516966
519661
498238
696888
514309
514315
426908
414979
609861
489653
473898
524789
601879
514311
588200
584739
608200
]
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 (485894 , 608456 , 754134 , 784888 , 587837 , 729641 , 740281 , 750276 , 601974 , 617684 , 733309 , 742370 , 778887 , 603025 , 401915 , 438025 , 533470 , 636587 , 764711 , 433981 , 411559 , 696455 , 441897 , 709914 , 599615 , 532006 , 507783 , 757501 , 438730 , 421655 , 543437 , 716954 , 780507 , 397528 , 449657 , 521153 , 385496 , 577899 , 587171 , 600395 , 516432 , 457622 , 793494 , 481802 , 532826 , 529134 , 573391 , 516966 , 519661 , 498238 , 696888 , 514309 , 514315 , 426908 , 414979 , 609861 , 489653 , 473898 , 524789 , 601879 , 514311 , 588200 , 584739 , 608200 );
Copy
4
212.58 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
385496
397528
401915
411559
414979
421655
426908
433981
438025
438730
441897
449657
457622
473898
481802
485894
489653
498238
507783
514309
514311
514315
516432
516966
519661
521153
524789
529134
532006
532826
533470
543437
573391
577899
584739
587171
587837
588200
599615
600395
601879
601974
603025
608200
608456
609861
617684
636587
696455
696888
709914
716954
729641
733309
740281
742370
750276
754134
757501
764711
778887
780507
784888
793494
]
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 (385496 , 397528 , 401915 , 411559 , 414979 , 421655 , 426908 , 433981 , 438025 , 438730 , 441897 , 449657 , 457622 , 473898 , 481802 , 485894 , 489653 , 498238 , 507783 , 514309 , 514311 , 514315 , 516432 , 516966 , 519661 , 521153 , 524789 , 529134 , 532006 , 532826 , 533470 , 543437 , 573391 , 577899 , 584739 , 587171 , 587837 , 588200 , 599615 , 600395 , 601879 , 601974 , 603025 , 608200 , 608456 , 609861 , 617684 , 636587 , 696455 , 696888 , 709914 , 716954 , 729641 , 733309 , 740281 , 742370 , 750276 , 754134 , 757501 , 764711 , 778887 , 780507 , 784888 , 793494 );
Copy
5
87.53 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
385496
397528
401915
411559
414979
421655
426908
433981
438025
438730
441897
449657
457622
473898
481802
485894
489653
498238
507783
514309
514311
514315
516432
516966
519661
521153
524789
529134
532006
532826
533470
543437
573391
577899
584739
587171
587837
588200
599615
600395
601879
601974
603025
608200
608456
609861
617684
636587
696455
696888
709914
716954
729641
733309
740281
742370
750276
754134
757501
764711
778887
780507
784888
793494
]
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 (385496 , 397528 , 401915 , 411559 , 414979 , 421655 , 426908 , 433981 , 438025 , 438730 , 441897 , 449657 , 457622 , 473898 , 481802 , 485894 , 489653 , 498238 , 507783 , 514309 , 514311 , 514315 , 516432 , 516966 , 519661 , 521153 , 524789 , 529134 , 532006 , 532826 , 533470 , 543437 , 573391 , 577899 , 584739 , 587171 , 587837 , 588200 , 599615 , 600395 , 601879 , 601974 , 603025 , 608200 , 608456 , 609861 , 617684 , 636587 , 696455 , 696888 , 709914 , 716954 , 729641 , 733309 , 740281 , 742370 , 750276 , 754134 , 757501 , 764711 , 778887 , 780507 , 784888 , 793494 );
Copy