3
17.55 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
523157
547575
591760
597250
809502
710566
420901
506441
533576
549832
564177
561361
565695
603067
588261
597720
741288
782911
789694
617032
794963
497290
603053
445306
584672
693965
407587
479641
473728
484928
504791
439643
486005
806157
798610
736564
512166
614580
643370
607027
470829
544461
544788
473541
667817
624480
373950
814392
809466
440621
527405
623306
439565
492401
494312
456523
509995
516711
523253
537595
630553
518473
628404
516727
516714
667748
528361
639334
639060
]
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 (523157 , 547575 , 591760 , 597250 , 809502 , 710566 , 420901 , 506441 , 533576 , 549832 , 564177 , 561361 , 565695 , 603067 , 588261 , 597720 , 741288 , 782911 , 789694 , 617032 , 794963 , 497290 , 603053 , 445306 , 584672 , 693965 , 407587 , 479641 , 473728 , 484928 , 504791 , 439643 , 486005 , 806157 , 798610 , 736564 , 512166 , 614580 , 643370 , 607027 , 470829 , 544461 , 544788 , 473541 , 667817 , 624480 , 373950 , 814392 , 809466 , 440621 , 527405 , 623306 , 439565 , 492401 , 494312 , 456523 , 509995 , 516711 , 523253 , 537595 , 630553 , 518473 , 628404 , 516727 , 516714 , 667748 , 528361 , 639334 , 639060 );
Copy
4
2.57 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
373950
407587
420901
439565
439643
440621
445306
456523
470829
473541
473728
479641
484928
486005
492401
494312
497290
504791
506441
509995
512166
516711
516714
516727
518473
523157
523253
527405
528361
533576
537595
544461
544788
547575
549832
561361
564177
565695
584672
588261
591760
597250
597720
603053
603067
607027
614580
617032
623306
624480
628404
630553
639060
639334
643370
667748
667817
693965
710566
736564
741288
782911
789694
794963
798610
806157
809466
809502
814392
]
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 (373950 , 407587 , 420901 , 439565 , 439643 , 440621 , 445306 , 456523 , 470829 , 473541 , 473728 , 479641 , 484928 , 486005 , 492401 , 494312 , 497290 , 504791 , 506441 , 509995 , 512166 , 516711 , 516714 , 516727 , 518473 , 523157 , 523253 , 527405 , 528361 , 533576 , 537595 , 544461 , 544788 , 547575 , 549832 , 561361 , 564177 , 565695 , 584672 , 588261 , 591760 , 597250 , 597720 , 603053 , 603067 , 607027 , 614580 , 617032 , 623306 , 624480 , 628404 , 630553 , 639060 , 639334 , 643370 , 667748 , 667817 , 693965 , 710566 , 736564 , 741288 , 782911 , 789694 , 794963 , 798610 , 806157 , 809466 , 809502 , 814392 );
Copy
5
81.10 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
373950
407587
420901
439565
439643
440621
445306
456523
470829
473541
473728
479641
484928
486005
492401
494312
497290
504791
506441
509995
512166
516711
516714
516727
518473
523157
523253
527405
528361
533576
537595
544461
544788
547575
549832
561361
564177
565695
584672
588261
591760
597250
597720
603053
603067
607027
614580
617032
623306
624480
628404
630553
639060
639334
643370
667748
667817
693965
710566
736564
741288
782911
789694
794963
798610
806157
809466
809502
814392
]
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 (373950 , 407587 , 420901 , 439565 , 439643 , 440621 , 445306 , 456523 , 470829 , 473541 , 473728 , 479641 , 484928 , 486005 , 492401 , 494312 , 497290 , 504791 , 506441 , 509995 , 512166 , 516711 , 516714 , 516727 , 518473 , 523157 , 523253 , 527405 , 528361 , 533576 , 537595 , 544461 , 544788 , 547575 , 549832 , 561361 , 564177 , 565695 , 584672 , 588261 , 591760 , 597250 , 597720 , 603053 , 603067 , 607027 , 614580 , 617032 , 623306 , 624480 , 628404 , 630553 , 639060 , 639334 , 643370 , 667748 , 667817 , 693965 , 710566 , 736564 , 741288 , 782911 , 789694 , 794963 , 798610 , 806157 , 809466 , 809502 , 814392 );
Copy