3
12.47 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
801281
693381
678573
801587
688322
716311
721744
826672
814252
400643
805039
597267
611700
755219
467344
482793
622394
757906
622392
581564
801709
404490
414759
556022
530756
575176
645014
568058
622391
622397
524561
663288
519695
530759
530025
647850
591190
590731
798681
599434
444629
562373
581095
529846
533471
556017
614058
632979
633114
556014
637004
591208
554105
418065
570708
680159
814931
632256
514796
532747
622398
516826
564136
624173
552550
815883
474025
467441
580669
628073
680170
537210
530762
519933
]
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 (801281 , 693381 , 678573 , 801587 , 688322 , 716311 , 721744 , 826672 , 814252 , 400643 , 805039 , 597267 , 611700 , 755219 , 467344 , 482793 , 622394 , 757906 , 622392 , 581564 , 801709 , 404490 , 414759 , 556022 , 530756 , 575176 , 645014 , 568058 , 622391 , 622397 , 524561 , 663288 , 519695 , 530759 , 530025 , 647850 , 591190 , 590731 , 798681 , 599434 , 444629 , 562373 , 581095 , 529846 , 533471 , 556017 , 614058 , 632979 , 633114 , 556014 , 637004 , 591208 , 554105 , 418065 , 570708 , 680159 , 814931 , 632256 , 514796 , 532747 , 622398 , 516826 , 564136 , 624173 , 552550 , 815883 , 474025 , 467441 , 580669 , 628073 , 680170 , 537210 , 530762 , 519933 );
Copy
4
3.38 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
400643
404490
414759
418065
444629
467344
467441
474025
482793
514796
516826
519695
519933
524561
529846
530025
530756
530759
530762
532747
533471
537210
552550
554105
556014
556017
556022
562373
564136
568058
570708
575176
580669
581095
581564
590731
591190
591208
597267
599434
611700
614058
622391
622392
622394
622397
622398
624173
628073
632256
632979
633114
637004
645014
647850
663288
678573
680159
680170
688322
693381
716311
721744
755219
757906
798681
801281
801587
801709
805039
814252
814931
815883
826672
]
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 (400643 , 404490 , 414759 , 418065 , 444629 , 467344 , 467441 , 474025 , 482793 , 514796 , 516826 , 519695 , 519933 , 524561 , 529846 , 530025 , 530756 , 530759 , 530762 , 532747 , 533471 , 537210 , 552550 , 554105 , 556014 , 556017 , 556022 , 562373 , 564136 , 568058 , 570708 , 575176 , 580669 , 581095 , 581564 , 590731 , 591190 , 591208 , 597267 , 599434 , 611700 , 614058 , 622391 , 622392 , 622394 , 622397 , 622398 , 624173 , 628073 , 632256 , 632979 , 633114 , 637004 , 645014 , 647850 , 663288 , 678573 , 680159 , 680170 , 688322 , 693381 , 716311 , 721744 , 755219 , 757906 , 798681 , 801281 , 801587 , 801709 , 805039 , 814252 , 814931 , 815883 , 826672 );
Copy
5
94.40 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
400643
404490
414759
418065
444629
467344
467441
474025
482793
514796
516826
519695
519933
524561
529846
530025
530756
530759
530762
532747
533471
537210
552550
554105
556014
556017
556022
562373
564136
568058
570708
575176
580669
581095
581564
590731
591190
591208
597267
599434
611700
614058
622391
622392
622394
622397
622398
624173
628073
632256
632979
633114
637004
645014
647850
663288
678573
680159
680170
688322
693381
716311
721744
755219
757906
798681
801281
801587
801709
805039
814252
814931
815883
826672
]
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 (400643 , 404490 , 414759 , 418065 , 444629 , 467344 , 467441 , 474025 , 482793 , 514796 , 516826 , 519695 , 519933 , 524561 , 529846 , 530025 , 530756 , 530759 , 530762 , 532747 , 533471 , 537210 , 552550 , 554105 , 556014 , 556017 , 556022 , 562373 , 564136 , 568058 , 570708 , 575176 , 580669 , 581095 , 581564 , 590731 , 591190 , 591208 , 597267 , 599434 , 611700 , 614058 , 622391 , 622392 , 622394 , 622397 , 622398 , 624173 , 628073 , 632256 , 632979 , 633114 , 637004 , 645014 , 647850 , 663288 , 678573 , 680159 , 680170 , 688322 , 693381 , 716311 , 721744 , 755219 , 757906 , 798681 , 801281 , 801587 , 801709 , 805039 , 814252 , 814931 , 815883 , 826672 );
Copy