3
11.69 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
750242
469778
812351
767786
457625
469219
570130
697994
738556
713858
696143
764871
767326
729097
705476
784770
784743
385831
555082
736235
802324
592300
182135
672850
721424
721417
681223
742968
423487
750600
789613
714304
664236
534060
505328
752145
456664
736316
534586
545328
592364
381734
470120
447771
302443
448065
383548
590788
604793
787491
439345
597450
579582
456665
435391
785500
435027
545375
583041
569829
478025
429927
680484
479011
501443
803631
804064
512684
617045
617047
459794
454969
582282
621737
496575
]
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 (750242 , 469778 , 812351 , 767786 , 457625 , 469219 , 570130 , 697994 , 738556 , 713858 , 696143 , 764871 , 767326 , 729097 , 705476 , 784770 , 784743 , 385831 , 555082 , 736235 , 802324 , 592300 , 182135 , 672850 , 721424 , 721417 , 681223 , 742968 , 423487 , 750600 , 789613 , 714304 , 664236 , 534060 , 505328 , 752145 , 456664 , 736316 , 534586 , 545328 , 592364 , 381734 , 470120 , 447771 , 302443 , 448065 , 383548 , 590788 , 604793 , 787491 , 439345 , 597450 , 579582 , 456665 , 435391 , 785500 , 435027 , 545375 , 583041 , 569829 , 478025 , 429927 , 680484 , 479011 , 501443 , 803631 , 804064 , 512684 , 617045 , 617047 , 459794 , 454969 , 582282 , 621737 , 496575 );
Copy
4
2.51 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
182135
302443
381734
383548
385831
423487
429927
435027
435391
439345
447771
448065
454969
456664
456665
457625
459794
469219
469778
470120
478025
479011
496575
501443
505328
512684
534060
534586
545328
545375
555082
569829
570130
579582
582282
583041
590788
592300
592364
597450
604793
617045
617047
621737
664236
672850
680484
681223
696143
697994
705476
713858
714304
721417
721424
729097
736235
736316
738556
742968
750242
750600
752145
764871
767326
767786
784743
784770
785500
787491
789613
802324
803631
804064
812351
]
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 (182135 , 302443 , 381734 , 383548 , 385831 , 423487 , 429927 , 435027 , 435391 , 439345 , 447771 , 448065 , 454969 , 456664 , 456665 , 457625 , 459794 , 469219 , 469778 , 470120 , 478025 , 479011 , 496575 , 501443 , 505328 , 512684 , 534060 , 534586 , 545328 , 545375 , 555082 , 569829 , 570130 , 579582 , 582282 , 583041 , 590788 , 592300 , 592364 , 597450 , 604793 , 617045 , 617047 , 621737 , 664236 , 672850 , 680484 , 681223 , 696143 , 697994 , 705476 , 713858 , 714304 , 721417 , 721424 , 729097 , 736235 , 736316 , 738556 , 742968 , 750242 , 750600 , 752145 , 764871 , 767326 , 767786 , 784743 , 784770 , 785500 , 787491 , 789613 , 802324 , 803631 , 804064 , 812351 );
Copy
5
90.73 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
182135
302443
381734
383548
385831
423487
429927
435027
435391
439345
447771
448065
454969
456664
456665
457625
459794
469219
469778
470120
478025
479011
496575
501443
505328
512684
534060
534586
545328
545375
555082
569829
570130
579582
582282
583041
590788
592300
592364
597450
604793
617045
617047
621737
664236
672850
680484
681223
696143
697994
705476
713858
714304
721417
721424
729097
736235
736316
738556
742968
750242
750600
752145
764871
767326
767786
784743
784770
785500
787491
789613
802324
803631
804064
812351
]
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 (182135 , 302443 , 381734 , 383548 , 385831 , 423487 , 429927 , 435027 , 435391 , 439345 , 447771 , 448065 , 454969 , 456664 , 456665 , 457625 , 459794 , 469219 , 469778 , 470120 , 478025 , 479011 , 496575 , 501443 , 505328 , 512684 , 534060 , 534586 , 545328 , 545375 , 555082 , 569829 , 570130 , 579582 , 582282 , 583041 , 590788 , 592300 , 592364 , 597450 , 604793 , 617045 , 617047 , 621737 , 664236 , 672850 , 680484 , 681223 , 696143 , 697994 , 705476 , 713858 , 714304 , 721417 , 721424 , 729097 , 736235 , 736316 , 738556 , 742968 , 750242 , 750600 , 752145 , 764871 , 767326 , 767786 , 784743 , 784770 , 785500 , 787491 , 789613 , 802324 , 803631 , 804064 , 812351 );
Copy