3
13.50 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
813913
682181
564378
434003
517428
421892
447163
512556
511369
504968
422211
535335
482251
477337
518046
521997
505973
569394
459783
437582
528858
508701
559076
430313
464329
439587
439695
453721
529157
516886
465824
458928
463624
529170
492096
417990
687437
433070
516480
425347
428137
434608
421155
489941
516478
426994
463215
450319
463630
473248
519936
716927
443832
414946
421825
512369
523907
544420
563438
568344
439633
432807
507047
504927
549821
550633
516481
401064
549829
563218
621655
485265
599703
519023
]
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 (813913 , 682181 , 564378 , 434003 , 517428 , 421892 , 447163 , 512556 , 511369 , 504968 , 422211 , 535335 , 482251 , 477337 , 518046 , 521997 , 505973 , 569394 , 459783 , 437582 , 528858 , 508701 , 559076 , 430313 , 464329 , 439587 , 439695 , 453721 , 529157 , 516886 , 465824 , 458928 , 463624 , 529170 , 492096 , 417990 , 687437 , 433070 , 516480 , 425347 , 428137 , 434608 , 421155 , 489941 , 516478 , 426994 , 463215 , 450319 , 463630 , 473248 , 519936 , 716927 , 443832 , 414946 , 421825 , 512369 , 523907 , 544420 , 563438 , 568344 , 439633 , 432807 , 507047 , 504927 , 549821 , 550633 , 516481 , 401064 , 549829 , 563218 , 621655 , 485265 , 599703 , 519023 );
Copy
4
3.17 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
401064
414946
417990
421155
421825
421892
422211
425347
426994
428137
430313
432807
433070
434003
434608
437582
439587
439633
439695
443832
447163
450319
453721
458928
459783
463215
463624
463630
464329
465824
473248
477337
482251
485265
489941
492096
504927
504968
505973
507047
508701
511369
512369
512556
516478
516480
516481
516886
517428
518046
519023
519936
521997
523907
528858
529157
529170
535335
544420
549821
549829
550633
563218
563438
564378
568344
569394
599703
621655
682181
687437
716927
813913
]
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 (401064 , 414946 , 417990 , 421155 , 421825 , 421892 , 422211 , 425347 , 426994 , 428137 , 430313 , 432807 , 433070 , 434003 , 434608 , 437582 , 439587 , 439633 , 439695 , 443832 , 447163 , 450319 , 453721 , 458928 , 459783 , 463215 , 463624 , 463630 , 464329 , 465824 , 473248 , 477337 , 482251 , 485265 , 489941 , 492096 , 504927 , 504968 , 505973 , 507047 , 508701 , 511369 , 512369 , 512556 , 516478 , 516480 , 516481 , 516886 , 517428 , 518046 , 519023 , 519936 , 521997 , 523907 , 528858 , 529157 , 529170 , 535335 , 544420 , 549821 , 549829 , 550633 , 563218 , 563438 , 564378 , 568344 , 569394 , 599703 , 621655 , 682181 , 687437 , 716927 , 813913 );
Copy
5
82.01 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
401064
414946
417990
421155
421825
421892
422211
425347
426994
428137
430313
432807
433070
434003
434608
437582
439587
439633
439695
443832
447163
450319
453721
458928
459783
463215
463624
463630
464329
465824
473248
477337
482251
485265
489941
492096
504927
504968
505973
507047
508701
511369
512369
512556
516478
516480
516481
516886
517428
518046
519023
519936
521997
523907
528858
529157
529170
535335
544420
549821
549829
550633
563218
563438
564378
568344
569394
599703
621655
682181
687437
716927
813913
]
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 (401064 , 414946 , 417990 , 421155 , 421825 , 421892 , 422211 , 425347 , 426994 , 428137 , 430313 , 432807 , 433070 , 434003 , 434608 , 437582 , 439587 , 439633 , 439695 , 443832 , 447163 , 450319 , 453721 , 458928 , 459783 , 463215 , 463624 , 463630 , 464329 , 465824 , 473248 , 477337 , 482251 , 485265 , 489941 , 492096 , 504927 , 504968 , 505973 , 507047 , 508701 , 511369 , 512369 , 512556 , 516478 , 516480 , 516481 , 516886 , 517428 , 518046 , 519023 , 519936 , 521997 , 523907 , 528858 , 529157 , 529170 , 535335 , 544420 , 549821 , 549829 , 550633 , 563218 , 563438 , 564378 , 568344 , 569394 , 599703 , 621655 , 682181 , 687437 , 716927 , 813913 );
Copy