3
12.22 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
609814
427327
501227
418018
474461
532865
555950
561601
580750
524555
475121
559069
421236
533186
826452
430661
514629
498717
529958
561381
515633
530999
450343
472588
481878
497469
479788
499183
458614
572924
587901
475937
459877
510360
473102
825385
556834
582639
482689
508673
519937
451088
427263
519160
528108
480340
521806
801225
500566
483551
567047
602629
523766
540073
608044
556535
461191
450508
535042
528921
419175
491730
520697
492325
486094
486540
613951
490063
]
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 (609814 , 427327 , 501227 , 418018 , 474461 , 532865 , 555950 , 561601 , 580750 , 524555 , 475121 , 559069 , 421236 , 533186 , 826452 , 430661 , 514629 , 498717 , 529958 , 561381 , 515633 , 530999 , 450343 , 472588 , 481878 , 497469 , 479788 , 499183 , 458614 , 572924 , 587901 , 475937 , 459877 , 510360 , 473102 , 825385 , 556834 , 582639 , 482689 , 508673 , 519937 , 451088 , 427263 , 519160 , 528108 , 480340 , 521806 , 801225 , 500566 , 483551 , 567047 , 602629 , 523766 , 540073 , 608044 , 556535 , 461191 , 450508 , 535042 , 528921 , 419175 , 491730 , 520697 , 492325 , 486094 , 486540 , 613951 , 490063 );
Copy
4
2.31 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
418018
419175
421236
427263
427327
430661
450343
450508
451088
458614
459877
461191
472588
473102
474461
475121
475937
479788
480340
481878
482689
483551
486094
486540
490063
491730
492325
497469
498717
499183
500566
501227
508673
510360
514629
515633
519160
519937
520697
521806
523766
524555
528108
528921
529958
530999
532865
533186
535042
540073
555950
556535
556834
559069
561381
561601
567047
572924
580750
582639
587901
602629
608044
609814
613951
801225
825385
826452
]
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 (418018 , 419175 , 421236 , 427263 , 427327 , 430661 , 450343 , 450508 , 451088 , 458614 , 459877 , 461191 , 472588 , 473102 , 474461 , 475121 , 475937 , 479788 , 480340 , 481878 , 482689 , 483551 , 486094 , 486540 , 490063 , 491730 , 492325 , 497469 , 498717 , 499183 , 500566 , 501227 , 508673 , 510360 , 514629 , 515633 , 519160 , 519937 , 520697 , 521806 , 523766 , 524555 , 528108 , 528921 , 529958 , 530999 , 532865 , 533186 , 535042 , 540073 , 555950 , 556535 , 556834 , 559069 , 561381 , 561601 , 567047 , 572924 , 580750 , 582639 , 587901 , 602629 , 608044 , 609814 , 613951 , 801225 , 825385 , 826452 );
Copy
5
92.64 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
418018
419175
421236
427263
427327
430661
450343
450508
451088
458614
459877
461191
472588
473102
474461
475121
475937
479788
480340
481878
482689
483551
486094
486540
490063
491730
492325
497469
498717
499183
500566
501227
508673
510360
514629
515633
519160
519937
520697
521806
523766
524555
528108
528921
529958
530999
532865
533186
535042
540073
555950
556535
556834
559069
561381
561601
567047
572924
580750
582639
587901
602629
608044
609814
613951
801225
825385
826452
]
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 (418018 , 419175 , 421236 , 427263 , 427327 , 430661 , 450343 , 450508 , 451088 , 458614 , 459877 , 461191 , 472588 , 473102 , 474461 , 475121 , 475937 , 479788 , 480340 , 481878 , 482689 , 483551 , 486094 , 486540 , 490063 , 491730 , 492325 , 497469 , 498717 , 499183 , 500566 , 501227 , 508673 , 510360 , 514629 , 515633 , 519160 , 519937 , 520697 , 521806 , 523766 , 524555 , 528108 , 528921 , 529958 , 530999 , 532865 , 533186 , 535042 , 540073 , 555950 , 556535 , 556834 , 559069 , 561381 , 561601 , 567047 , 572924 , 580750 , 582639 , 587901 , 602629 , 608044 , 609814 , 613951 , 801225 , 825385 , 826452 );
Copy