3
14.12 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
466262
506053
484711
484618
470596
565351
464327
456614
470749
499718
553949
584328
714511
646229
653911
606571
617195
475807
484708
517841
518558
484661
760576
622111
557236
446505
481147
668525
603622
414313
460739
462700
464266
466097
503194
477079
576859
421907
474024
470248
470939
446894
455912
470487
497865
511023
513710
614262
597240
553661
420635
506047
510767
543415
748349
439819
536400
459857
526203
544261
476709
515262
514435
]
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 (466262 , 506053 , 484711 , 484618 , 470596 , 565351 , 464327 , 456614 , 470749 , 499718 , 553949 , 584328 , 714511 , 646229 , 653911 , 606571 , 617195 , 475807 , 484708 , 517841 , 518558 , 484661 , 760576 , 622111 , 557236 , 446505 , 481147 , 668525 , 603622 , 414313 , 460739 , 462700 , 464266 , 466097 , 503194 , 477079 , 576859 , 421907 , 474024 , 470248 , 470939 , 446894 , 455912 , 470487 , 497865 , 511023 , 513710 , 614262 , 597240 , 553661 , 420635 , 506047 , 510767 , 543415 , 748349 , 439819 , 536400 , 459857 , 526203 , 544261 , 476709 , 515262 , 514435 );
Copy
4
2.86 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
414313
420635
421907
439819
446505
446894
455912
456614
459857
460739
462700
464266
464327
466097
466262
470248
470487
470596
470749
470939
474024
475807
476709
477079
481147
484618
484661
484708
484711
497865
499718
503194
506047
506053
510767
511023
513710
514435
515262
517841
518558
526203
536400
543415
544261
553661
553949
557236
565351
576859
584328
597240
603622
606571
614262
617195
622111
646229
653911
668525
714511
748349
760576
]
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 (414313 , 420635 , 421907 , 439819 , 446505 , 446894 , 455912 , 456614 , 459857 , 460739 , 462700 , 464266 , 464327 , 466097 , 466262 , 470248 , 470487 , 470596 , 470749 , 470939 , 474024 , 475807 , 476709 , 477079 , 481147 , 484618 , 484661 , 484708 , 484711 , 497865 , 499718 , 503194 , 506047 , 506053 , 510767 , 511023 , 513710 , 514435 , 515262 , 517841 , 518558 , 526203 , 536400 , 543415 , 544261 , 553661 , 553949 , 557236 , 565351 , 576859 , 584328 , 597240 , 603622 , 606571 , 614262 , 617195 , 622111 , 646229 , 653911 , 668525 , 714511 , 748349 , 760576 );
Copy
5
93.43 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
414313
420635
421907
439819
446505
446894
455912
456614
459857
460739
462700
464266
464327
466097
466262
470248
470487
470596
470749
470939
474024
475807
476709
477079
481147
484618
484661
484708
484711
497865
499718
503194
506047
506053
510767
511023
513710
514435
515262
517841
518558
526203
536400
543415
544261
553661
553949
557236
565351
576859
584328
597240
603622
606571
614262
617195
622111
646229
653911
668525
714511
748349
760576
]
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 (414313 , 420635 , 421907 , 439819 , 446505 , 446894 , 455912 , 456614 , 459857 , 460739 , 462700 , 464266 , 464327 , 466097 , 466262 , 470248 , 470487 , 470596 , 470749 , 470939 , 474024 , 475807 , 476709 , 477079 , 481147 , 484618 , 484661 , 484708 , 484711 , 497865 , 499718 , 503194 , 506047 , 506053 , 510767 , 511023 , 513710 , 514435 , 515262 , 517841 , 518558 , 526203 , 536400 , 543415 , 544261 , 553661 , 553949 , 557236 , 565351 , 576859 , 584328 , 597240 , 603622 , 606571 , 614262 , 617195 , 622111 , 646229 , 653911 , 668525 , 714511 , 748349 , 760576 );
Copy