3
14.52 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
547488
545369
559377
661424
785614
766335
709128
404028
432299
446797
573197
660399
665957
660375
811296
738814
625783
524677
441089
547467
660410
574388
805146
666988
668677
660365
669023
752589
547485
590281
428174
825864
530375
669012
749087
791489
805139
460338
456240
813899
576503
668663
668690
590255
534553
632107
584301
512939
530491
805144
462840
582514
660405
669030
670367
664192
751582
530026
532739
530630
669058
633458
390713
669007
666528
640751
512938
574951
763724
516508
590505
628091
456220
635171
]
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 (547488 , 545369 , 559377 , 661424 , 785614 , 766335 , 709128 , 404028 , 432299 , 446797 , 573197 , 660399 , 665957 , 660375 , 811296 , 738814 , 625783 , 524677 , 441089 , 547467 , 660410 , 574388 , 805146 , 666988 , 668677 , 660365 , 669023 , 752589 , 547485 , 590281 , 428174 , 825864 , 530375 , 669012 , 749087 , 791489 , 805139 , 460338 , 456240 , 813899 , 576503 , 668663 , 668690 , 590255 , 534553 , 632107 , 584301 , 512939 , 530491 , 805144 , 462840 , 582514 , 660405 , 669030 , 670367 , 664192 , 751582 , 530026 , 532739 , 530630 , 669058 , 633458 , 390713 , 669007 , 666528 , 640751 , 512938 , 574951 , 763724 , 516508 , 590505 , 628091 , 456220 , 635171 );
Copy
4
3.65 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
390713
404028
428174
432299
441089
446797
456220
456240
460338
462840
512938
512939
516508
530026
530375
530491
530630
532739
534553
545369
547467
547485
547488
559377
573197
574388
574951
576503
582514
584301
590255
590281
590505
625783
628091
632107
633458
635171
640751
660365
660375
660399
660405
660410
661424
664192
665957
666528
666988
668663
668677
668690
669007
669012
669023
669030
669058
670367
709128
738814
749087
751582
752589
763724
766335
785614
791489
805139
805144
805146
811296
813899
825864
]
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 (390713 , 404028 , 428174 , 432299 , 441089 , 446797 , 456220 , 456240 , 460338 , 462840 , 512938 , 512939 , 516508 , 530026 , 530375 , 530491 , 530630 , 532739 , 534553 , 545369 , 547467 , 547485 , 547488 , 559377 , 573197 , 574388 , 574951 , 576503 , 582514 , 584301 , 590255 , 590281 , 590505 , 625783 , 628091 , 632107 , 633458 , 635171 , 640751 , 660365 , 660375 , 660399 , 660405 , 660410 , 661424 , 664192 , 665957 , 666528 , 666988 , 668663 , 668677 , 668690 , 669007 , 669012 , 669023 , 669030 , 669058 , 670367 , 709128 , 738814 , 749087 , 751582 , 752589 , 763724 , 766335 , 785614 , 791489 , 805139 , 805144 , 805146 , 811296 , 813899 , 825864 );
Copy
5
144.06 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
390713
404028
428174
432299
441089
446797
456220
456240
460338
462840
512938
512939
516508
530026
530375
530491
530630
532739
534553
545369
547467
547485
547488
559377
573197
574388
574951
576503
582514
584301
590255
590281
590505
625783
628091
632107
633458
635171
640751
660365
660375
660399
660405
660410
661424
664192
665957
666528
666988
668663
668677
668690
669007
669012
669023
669030
669058
670367
709128
738814
749087
751582
752589
763724
766335
785614
791489
805139
805144
805146
811296
813899
825864
]
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 (390713 , 404028 , 428174 , 432299 , 441089 , 446797 , 456220 , 456240 , 460338 , 462840 , 512938 , 512939 , 516508 , 530026 , 530375 , 530491 , 530630 , 532739 , 534553 , 545369 , 547467 , 547485 , 547488 , 559377 , 573197 , 574388 , 574951 , 576503 , 582514 , 584301 , 590255 , 590281 , 590505 , 625783 , 628091 , 632107 , 633458 , 635171 , 640751 , 660365 , 660375 , 660399 , 660405 , 660410 , 661424 , 664192 , 665957 , 666528 , 666988 , 668663 , 668677 , 668690 , 669007 , 669012 , 669023 , 669030 , 669058 , 670367 , 709128 , 738814 , 749087 , 751582 , 752589 , 763724 , 766335 , 785614 , 791489 , 805139 , 805144 , 805146 , 811296 , 813899 , 825864 );
Copy