3
16.58 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
448687
446148
516383
520986
549027
598911
607620
585376
428895
400857
465649
467975
463087
421494
517478
532680
536584
563479
489950
543772
607374
511009
389066
420891
449889
458718
535369
512533
562060
650419
650849
789665
478978
469017
470442
448333
528181
555870
557570
662396
453313
431112
498022
529212
494770
564824
477097
448669
502794
486110
504908
519087
491473
512927
529271
430827
516885
554905
454709
524141
508860
523335
432751
551012
609953
487717
518438
565783
624226
559392
]
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 (448687 , 446148 , 516383 , 520986 , 549027 , 598911 , 607620 , 585376 , 428895 , 400857 , 465649 , 467975 , 463087 , 421494 , 517478 , 532680 , 536584 , 563479 , 489950 , 543772 , 607374 , 511009 , 389066 , 420891 , 449889 , 458718 , 535369 , 512533 , 562060 , 650419 , 650849 , 789665 , 478978 , 469017 , 470442 , 448333 , 528181 , 555870 , 557570 , 662396 , 453313 , 431112 , 498022 , 529212 , 494770 , 564824 , 477097 , 448669 , 502794 , 486110 , 504908 , 519087 , 491473 , 512927 , 529271 , 430827 , 516885 , 554905 , 454709 , 524141 , 508860 , 523335 , 432751 , 551012 , 609953 , 487717 , 518438 , 565783 , 624226 , 559392 );
Copy
4
2.98 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
389066
400857
420891
421494
428895
430827
431112
432751
446148
448333
448669
448687
449889
453313
454709
458718
463087
465649
467975
469017
470442
477097
478978
486110
487717
489950
491473
494770
498022
502794
504908
508860
511009
512533
512927
516383
516885
517478
518438
519087
520986
523335
524141
528181
529212
529271
532680
535369
536584
543772
549027
551012
554905
555870
557570
559392
562060
563479
564824
565783
585376
598911
607374
607620
609953
624226
650419
650849
662396
789665
]
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 (389066 , 400857 , 420891 , 421494 , 428895 , 430827 , 431112 , 432751 , 446148 , 448333 , 448669 , 448687 , 449889 , 453313 , 454709 , 458718 , 463087 , 465649 , 467975 , 469017 , 470442 , 477097 , 478978 , 486110 , 487717 , 489950 , 491473 , 494770 , 498022 , 502794 , 504908 , 508860 , 511009 , 512533 , 512927 , 516383 , 516885 , 517478 , 518438 , 519087 , 520986 , 523335 , 524141 , 528181 , 529212 , 529271 , 532680 , 535369 , 536584 , 543772 , 549027 , 551012 , 554905 , 555870 , 557570 , 559392 , 562060 , 563479 , 564824 , 565783 , 585376 , 598911 , 607374 , 607620 , 609953 , 624226 , 650419 , 650849 , 662396 , 789665 );
Copy
5
89.27 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
389066
400857
420891
421494
428895
430827
431112
432751
446148
448333
448669
448687
449889
453313
454709
458718
463087
465649
467975
469017
470442
477097
478978
486110
487717
489950
491473
494770
498022
502794
504908
508860
511009
512533
512927
516383
516885
517478
518438
519087
520986
523335
524141
528181
529212
529271
532680
535369
536584
543772
549027
551012
554905
555870
557570
559392
562060
563479
564824
565783
585376
598911
607374
607620
609953
624226
650419
650849
662396
789665
]
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 (389066 , 400857 , 420891 , 421494 , 428895 , 430827 , 431112 , 432751 , 446148 , 448333 , 448669 , 448687 , 449889 , 453313 , 454709 , 458718 , 463087 , 465649 , 467975 , 469017 , 470442 , 477097 , 478978 , 486110 , 487717 , 489950 , 491473 , 494770 , 498022 , 502794 , 504908 , 508860 , 511009 , 512533 , 512927 , 516383 , 516885 , 517478 , 518438 , 519087 , 520986 , 523335 , 524141 , 528181 , 529212 , 529271 , 532680 , 535369 , 536584 , 543772 , 549027 , 551012 , 554905 , 555870 , 557570 , 559392 , 562060 , 563479 , 564824 , 565783 , 585376 , 598911 , 607374 , 607620 , 609953 , 624226 , 650419 , 650849 , 662396 , 789665 );
Copy