3
10.31 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
567526
811125
813000
715260
604053
764160
771213
824795
460378
634302
423434
698916
706188
710846
692703
725446
769179
738296
470403
720206
809699
499083
720200
622527
813206
662383
528516
522935
714675
505538
714225
616625
769585
482139
451632
641806
741855
482242
514449
421734
505545
584917
502755
510224
632102
485244
507215
505548
580418
625165
441417
445872
500878
460431
552404
600943
592619
699682
527458
527928
507557
576429
517126
424332
455351
517575
505611
619894
418067
467878
505392
531135
524535
639810
562790
]
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 (567526 , 811125 , 813000 , 715260 , 604053 , 764160 , 771213 , 824795 , 460378 , 634302 , 423434 , 698916 , 706188 , 710846 , 692703 , 725446 , 769179 , 738296 , 470403 , 720206 , 809699 , 499083 , 720200 , 622527 , 813206 , 662383 , 528516 , 522935 , 714675 , 505538 , 714225 , 616625 , 769585 , 482139 , 451632 , 641806 , 741855 , 482242 , 514449 , 421734 , 505545 , 584917 , 502755 , 510224 , 632102 , 485244 , 507215 , 505548 , 580418 , 625165 , 441417 , 445872 , 500878 , 460431 , 552404 , 600943 , 592619 , 699682 , 527458 , 527928 , 507557 , 576429 , 517126 , 424332 , 455351 , 517575 , 505611 , 619894 , 418067 , 467878 , 505392 , 531135 , 524535 , 639810 , 562790 );
Copy
4
2.76 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
418067
421734
423434
424332
441417
445872
451632
455351
460378
460431
467878
470403
482139
482242
485244
499083
500878
502755
505392
505538
505545
505548
505611
507215
507557
510224
514449
517126
517575
522935
524535
527458
527928
528516
531135
552404
562790
567526
576429
580418
584917
592619
600943
604053
616625
619894
622527
625165
632102
634302
639810
641806
662383
692703
698916
699682
706188
710846
714225
714675
715260
720200
720206
725446
738296
741855
764160
769179
769585
771213
809699
811125
813000
813206
824795
]
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 (418067 , 421734 , 423434 , 424332 , 441417 , 445872 , 451632 , 455351 , 460378 , 460431 , 467878 , 470403 , 482139 , 482242 , 485244 , 499083 , 500878 , 502755 , 505392 , 505538 , 505545 , 505548 , 505611 , 507215 , 507557 , 510224 , 514449 , 517126 , 517575 , 522935 , 524535 , 527458 , 527928 , 528516 , 531135 , 552404 , 562790 , 567526 , 576429 , 580418 , 584917 , 592619 , 600943 , 604053 , 616625 , 619894 , 622527 , 625165 , 632102 , 634302 , 639810 , 641806 , 662383 , 692703 , 698916 , 699682 , 706188 , 710846 , 714225 , 714675 , 715260 , 720200 , 720206 , 725446 , 738296 , 741855 , 764160 , 769179 , 769585 , 771213 , 809699 , 811125 , 813000 , 813206 , 824795 );
Copy
5
111.81 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
418067
421734
423434
424332
441417
445872
451632
455351
460378
460431
467878
470403
482139
482242
485244
499083
500878
502755
505392
505538
505545
505548
505611
507215
507557
510224
514449
517126
517575
522935
524535
527458
527928
528516
531135
552404
562790
567526
576429
580418
584917
592619
600943
604053
616625
619894
622527
625165
632102
634302
639810
641806
662383
692703
698916
699682
706188
710846
714225
714675
715260
720200
720206
725446
738296
741855
764160
769179
769585
771213
809699
811125
813000
813206
824795
]
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 (418067 , 421734 , 423434 , 424332 , 441417 , 445872 , 451632 , 455351 , 460378 , 460431 , 467878 , 470403 , 482139 , 482242 , 485244 , 499083 , 500878 , 502755 , 505392 , 505538 , 505545 , 505548 , 505611 , 507215 , 507557 , 510224 , 514449 , 517126 , 517575 , 522935 , 524535 , 527458 , 527928 , 528516 , 531135 , 552404 , 562790 , 567526 , 576429 , 580418 , 584917 , 592619 , 600943 , 604053 , 616625 , 619894 , 622527 , 625165 , 632102 , 634302 , 639810 , 641806 , 662383 , 692703 , 698916 , 699682 , 706188 , 710846 , 714225 , 714675 , 715260 , 720200 , 720206 , 725446 , 738296 , 741855 , 764160 , 769179 , 769585 , 771213 , 809699 , 811125 , 813000 , 813206 , 824795 );
Copy