3
10.75 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
642940
524337
823577
823651
797941
555709
744500
437178
557030
385082
529696
785035
786033
580764
770145
419210
488458
593767
477037
522444
497611
693645
432692
554756
560766
728685
725421
537578
780039
827046
782356
741617
800237
496285
702363
593813
745763
751419
793552
543237
702283
801122
602334
415867
778749
437170
521439
527649
719923
522392
518820
701169
520201
400703
665323
797517
728861
514394
564176
612404
517276
624429
502215
523120
543508
529776
625144
745928
453959
454872
621355
491885
]
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 (642940 , 524337 , 823577 , 823651 , 797941 , 555709 , 744500 , 437178 , 557030 , 385082 , 529696 , 785035 , 786033 , 580764 , 770145 , 419210 , 488458 , 593767 , 477037 , 522444 , 497611 , 693645 , 432692 , 554756 , 560766 , 728685 , 725421 , 537578 , 780039 , 827046 , 782356 , 741617 , 800237 , 496285 , 702363 , 593813 , 745763 , 751419 , 793552 , 543237 , 702283 , 801122 , 602334 , 415867 , 778749 , 437170 , 521439 , 527649 , 719923 , 522392 , 518820 , 701169 , 520201 , 400703 , 665323 , 797517 , 728861 , 514394 , 564176 , 612404 , 517276 , 624429 , 502215 , 523120 , 543508 , 529776 , 625144 , 745928 , 453959 , 454872 , 621355 , 491885 );
Copy
4
3.34 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
385082
400703
415867
419210
432692
437170
437178
453959
454872
477037
488458
491885
496285
497611
502215
514394
517276
518820
520201
521439
522392
522444
523120
524337
527649
529696
529776
537578
543237
543508
554756
555709
557030
560766
564176
580764
593767
593813
602334
612404
621355
624429
625144
642940
665323
693645
701169
702283
702363
719923
725421
728685
728861
741617
744500
745763
745928
751419
770145
778749
780039
782356
785035
786033
793552
797517
797941
800237
801122
823577
823651
827046
]
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 (385082 , 400703 , 415867 , 419210 , 432692 , 437170 , 437178 , 453959 , 454872 , 477037 , 488458 , 491885 , 496285 , 497611 , 502215 , 514394 , 517276 , 518820 , 520201 , 521439 , 522392 , 522444 , 523120 , 524337 , 527649 , 529696 , 529776 , 537578 , 543237 , 543508 , 554756 , 555709 , 557030 , 560766 , 564176 , 580764 , 593767 , 593813 , 602334 , 612404 , 621355 , 624429 , 625144 , 642940 , 665323 , 693645 , 701169 , 702283 , 702363 , 719923 , 725421 , 728685 , 728861 , 741617 , 744500 , 745763 , 745928 , 751419 , 770145 , 778749 , 780039 , 782356 , 785035 , 786033 , 793552 , 797517 , 797941 , 800237 , 801122 , 823577 , 823651 , 827046 );
Copy
5
89.16 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
385082
400703
415867
419210
432692
437170
437178
453959
454872
477037
488458
491885
496285
497611
502215
514394
517276
518820
520201
521439
522392
522444
523120
524337
527649
529696
529776
537578
543237
543508
554756
555709
557030
560766
564176
580764
593767
593813
602334
612404
621355
624429
625144
642940
665323
693645
701169
702283
702363
719923
725421
728685
728861
741617
744500
745763
745928
751419
770145
778749
780039
782356
785035
786033
793552
797517
797941
800237
801122
823577
823651
827046
]
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 (385082 , 400703 , 415867 , 419210 , 432692 , 437170 , 437178 , 453959 , 454872 , 477037 , 488458 , 491885 , 496285 , 497611 , 502215 , 514394 , 517276 , 518820 , 520201 , 521439 , 522392 , 522444 , 523120 , 524337 , 527649 , 529696 , 529776 , 537578 , 543237 , 543508 , 554756 , 555709 , 557030 , 560766 , 564176 , 580764 , 593767 , 593813 , 602334 , 612404 , 621355 , 624429 , 625144 , 642940 , 665323 , 693645 , 701169 , 702283 , 702363 , 719923 , 725421 , 728685 , 728861 , 741617 , 744500 , 745763 , 745928 , 751419 , 770145 , 778749 , 780039 , 782356 , 785035 , 786033 , 793552 , 797517 , 797941 , 800237 , 801122 , 823577 , 823651 , 827046 );
Copy