3
8.24 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
802691
737018
763661
617038
779461
703211
637304
826690
783781
796015
779694
722255
719043
629130
774494
779405
787471
800723
710437
779686
442542
486230
683314
723144
725367
784388
643765
777531
551608
677128
705874
790729
772362
512413
438028
426627
756314
747044
461233
522439
521036
532614
562732
638181
607481
624600
415815
422418
496472
395273
411635
546532
569923
455835
473587
516507
584482
650624
592263
605297
418293
500210
486911
]
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 (802691 , 737018 , 763661 , 617038 , 779461 , 703211 , 637304 , 826690 , 783781 , 796015 , 779694 , 722255 , 719043 , 629130 , 774494 , 779405 , 787471 , 800723 , 710437 , 779686 , 442542 , 486230 , 683314 , 723144 , 725367 , 784388 , 643765 , 777531 , 551608 , 677128 , 705874 , 790729 , 772362 , 512413 , 438028 , 426627 , 756314 , 747044 , 461233 , 522439 , 521036 , 532614 , 562732 , 638181 , 607481 , 624600 , 415815 , 422418 , 496472 , 395273 , 411635 , 546532 , 569923 , 455835 , 473587 , 516507 , 584482 , 650624 , 592263 , 605297 , 418293 , 500210 , 486911 );
Copy
4
2.11 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
395273
411635
415815
418293
422418
426627
438028
442542
455835
461233
473587
486230
486911
496472
500210
512413
516507
521036
522439
532614
546532
551608
562732
569923
584482
592263
605297
607481
617038
624600
629130
637304
638181
643765
650624
677128
683314
703211
705874
710437
719043
722255
723144
725367
737018
747044
756314
763661
772362
774494
777531
779405
779461
779686
779694
783781
784388
787471
790729
796015
800723
802691
826690
]
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 (395273 , 411635 , 415815 , 418293 , 422418 , 426627 , 438028 , 442542 , 455835 , 461233 , 473587 , 486230 , 486911 , 496472 , 500210 , 512413 , 516507 , 521036 , 522439 , 532614 , 546532 , 551608 , 562732 , 569923 , 584482 , 592263 , 605297 , 607481 , 617038 , 624600 , 629130 , 637304 , 638181 , 643765 , 650624 , 677128 , 683314 , 703211 , 705874 , 710437 , 719043 , 722255 , 723144 , 725367 , 737018 , 747044 , 756314 , 763661 , 772362 , 774494 , 777531 , 779405 , 779461 , 779686 , 779694 , 783781 , 784388 , 787471 , 790729 , 796015 , 800723 , 802691 , 826690 );
Copy
5
105.82 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
395273
411635
415815
418293
422418
426627
438028
442542
455835
461233
473587
486230
486911
496472
500210
512413
516507
521036
522439
532614
546532
551608
562732
569923
584482
592263
605297
607481
617038
624600
629130
637304
638181
643765
650624
677128
683314
703211
705874
710437
719043
722255
723144
725367
737018
747044
756314
763661
772362
774494
777531
779405
779461
779686
779694
783781
784388
787471
790729
796015
800723
802691
826690
]
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 (395273 , 411635 , 415815 , 418293 , 422418 , 426627 , 438028 , 442542 , 455835 , 461233 , 473587 , 486230 , 486911 , 496472 , 500210 , 512413 , 516507 , 521036 , 522439 , 532614 , 546532 , 551608 , 562732 , 569923 , 584482 , 592263 , 605297 , 607481 , 617038 , 624600 , 629130 , 637304 , 638181 , 643765 , 650624 , 677128 , 683314 , 703211 , 705874 , 710437 , 719043 , 722255 , 723144 , 725367 , 737018 , 747044 , 756314 , 763661 , 772362 , 774494 , 777531 , 779405 , 779461 , 779686 , 779694 , 783781 , 784388 , 787471 , 790729 , 796015 , 800723 , 802691 , 826690 );
Copy