3
11.68 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
422815
403463
421283
460201
508595
813573
814741
471956
569524
696308
717793
600798
603249
585476
602933
600819
643127
802117
759987
406237
465013
404762
507590
491351
501505
512188
525964
485130
576002
570179
561086
606467
589116
599882
600864
600883
588340
600763
465520
437591
468884
507086
515137
521167
523291
485522
496103
519962
559161
582782
569829
596900
807492
702061
521166
559162
596904
600843
424220
440623
688007
447679
647986
600837
395818
515579
548596
475980
522930
621764
]
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 (422815 , 403463 , 421283 , 460201 , 508595 , 813573 , 814741 , 471956 , 569524 , 696308 , 717793 , 600798 , 603249 , 585476 , 602933 , 600819 , 643127 , 802117 , 759987 , 406237 , 465013 , 404762 , 507590 , 491351 , 501505 , 512188 , 525964 , 485130 , 576002 , 570179 , 561086 , 606467 , 589116 , 599882 , 600864 , 600883 , 588340 , 600763 , 465520 , 437591 , 468884 , 507086 , 515137 , 521167 , 523291 , 485522 , 496103 , 519962 , 559161 , 582782 , 569829 , 596900 , 807492 , 702061 , 521166 , 559162 , 596904 , 600843 , 424220 , 440623 , 688007 , 447679 , 647986 , 600837 , 395818 , 515579 , 548596 , 475980 , 522930 , 621764 );
Copy
4
2.52 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
395818
403463
404762
406237
421283
422815
424220
437591
440623
447679
460201
465013
465520
468884
471956
475980
485130
485522
491351
496103
501505
507086
507590
508595
512188
515137
515579
519962
521166
521167
522930
523291
525964
548596
559161
559162
561086
569524
569829
570179
576002
582782
585476
588340
589116
596900
596904
599882
600763
600798
600819
600837
600843
600864
600883
602933
603249
606467
621764
643127
647986
688007
696308
702061
717793
759987
802117
807492
813573
814741
]
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 (395818 , 403463 , 404762 , 406237 , 421283 , 422815 , 424220 , 437591 , 440623 , 447679 , 460201 , 465013 , 465520 , 468884 , 471956 , 475980 , 485130 , 485522 , 491351 , 496103 , 501505 , 507086 , 507590 , 508595 , 512188 , 515137 , 515579 , 519962 , 521166 , 521167 , 522930 , 523291 , 525964 , 548596 , 559161 , 559162 , 561086 , 569524 , 569829 , 570179 , 576002 , 582782 , 585476 , 588340 , 589116 , 596900 , 596904 , 599882 , 600763 , 600798 , 600819 , 600837 , 600843 , 600864 , 600883 , 602933 , 603249 , 606467 , 621764 , 643127 , 647986 , 688007 , 696308 , 702061 , 717793 , 759987 , 802117 , 807492 , 813573 , 814741 );
Copy
5
76.74 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
395818
403463
404762
406237
421283
422815
424220
437591
440623
447679
460201
465013
465520
468884
471956
475980
485130
485522
491351
496103
501505
507086
507590
508595
512188
515137
515579
519962
521166
521167
522930
523291
525964
548596
559161
559162
561086
569524
569829
570179
576002
582782
585476
588340
589116
596900
596904
599882
600763
600798
600819
600837
600843
600864
600883
602933
603249
606467
621764
643127
647986
688007
696308
702061
717793
759987
802117
807492
813573
814741
]
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 (395818 , 403463 , 404762 , 406237 , 421283 , 422815 , 424220 , 437591 , 440623 , 447679 , 460201 , 465013 , 465520 , 468884 , 471956 , 475980 , 485130 , 485522 , 491351 , 496103 , 501505 , 507086 , 507590 , 508595 , 512188 , 515137 , 515579 , 519962 , 521166 , 521167 , 522930 , 523291 , 525964 , 548596 , 559161 , 559162 , 561086 , 569524 , 569829 , 570179 , 576002 , 582782 , 585476 , 588340 , 589116 , 596900 , 596904 , 599882 , 600763 , 600798 , 600819 , 600837 , 600843 , 600864 , 600883 , 602933 , 603249 , 606467 , 621764 , 643127 , 647986 , 688007 , 696308 , 702061 , 717793 , 759987 , 802117 , 807492 , 813573 , 814741 );
Copy