3
13.71 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
599491
587228
486800
520989
478459
528502
559284
560902
577374
581341
589585
590481
599252
593759
486413
615748
527470
516661
517464
567907
581301
557310
495148
621396
587998
668641
632291
620198
611287
490581
554465
620264
625274
603004
592437
544637
453251
678764
646895
587860
615525
620265
464681
677973
554409
543556
519977
672712
529343
541753
563535
463122
563079
542826
480297
464542
441024
604342
590230
519576
554301
603592
587878
650851
586690
555789
613394
487911
627652
]
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 (599491 , 587228 , 486800 , 520989 , 478459 , 528502 , 559284 , 560902 , 577374 , 581341 , 589585 , 590481 , 599252 , 593759 , 486413 , 615748 , 527470 , 516661 , 517464 , 567907 , 581301 , 557310 , 495148 , 621396 , 587998 , 668641 , 632291 , 620198 , 611287 , 490581 , 554465 , 620264 , 625274 , 603004 , 592437 , 544637 , 453251 , 678764 , 646895 , 587860 , 615525 , 620265 , 464681 , 677973 , 554409 , 543556 , 519977 , 672712 , 529343 , 541753 , 563535 , 463122 , 563079 , 542826 , 480297 , 464542 , 441024 , 604342 , 590230 , 519576 , 554301 , 603592 , 587878 , 650851 , 586690 , 555789 , 613394 , 487911 , 627652 );
Copy
4
2.89 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
441024
453251
463122
464542
464681
478459
480297
486413
486800
487911
490581
495148
516661
517464
519576
519977
520989
527470
528502
529343
541753
542826
543556
544637
554301
554409
554465
555789
557310
559284
560902
563079
563535
567907
577374
581301
581341
586690
587228
587860
587878
587998
589585
590230
590481
592437
593759
599252
599491
603004
603592
604342
611287
613394
615525
615748
620198
620264
620265
621396
625274
627652
632291
646895
650851
668641
672712
677973
678764
]
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 (441024 , 453251 , 463122 , 464542 , 464681 , 478459 , 480297 , 486413 , 486800 , 487911 , 490581 , 495148 , 516661 , 517464 , 519576 , 519977 , 520989 , 527470 , 528502 , 529343 , 541753 , 542826 , 543556 , 544637 , 554301 , 554409 , 554465 , 555789 , 557310 , 559284 , 560902 , 563079 , 563535 , 567907 , 577374 , 581301 , 581341 , 586690 , 587228 , 587860 , 587878 , 587998 , 589585 , 590230 , 590481 , 592437 , 593759 , 599252 , 599491 , 603004 , 603592 , 604342 , 611287 , 613394 , 615525 , 615748 , 620198 , 620264 , 620265 , 621396 , 625274 , 627652 , 632291 , 646895 , 650851 , 668641 , 672712 , 677973 , 678764 );
Copy
5
108.28 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
441024
453251
463122
464542
464681
478459
480297
486413
486800
487911
490581
495148
516661
517464
519576
519977
520989
527470
528502
529343
541753
542826
543556
544637
554301
554409
554465
555789
557310
559284
560902
563079
563535
567907
577374
581301
581341
586690
587228
587860
587878
587998
589585
590230
590481
592437
593759
599252
599491
603004
603592
604342
611287
613394
615525
615748
620198
620264
620265
621396
625274
627652
632291
646895
650851
668641
672712
677973
678764
]
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 (441024 , 453251 , 463122 , 464542 , 464681 , 478459 , 480297 , 486413 , 486800 , 487911 , 490581 , 495148 , 516661 , 517464 , 519576 , 519977 , 520989 , 527470 , 528502 , 529343 , 541753 , 542826 , 543556 , 544637 , 554301 , 554409 , 554465 , 555789 , 557310 , 559284 , 560902 , 563079 , 563535 , 567907 , 577374 , 581301 , 581341 , 586690 , 587228 , 587860 , 587878 , 587998 , 589585 , 590230 , 590481 , 592437 , 593759 , 599252 , 599491 , 603004 , 603592 , 604342 , 611287 , 613394 , 615525 , 615748 , 620198 , 620264 , 620265 , 621396 , 625274 , 627652 , 632291 , 646895 , 650851 , 668641 , 672712 , 677973 , 678764 );
Copy