3
13.59 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
468239
388077
758198
479701
163370
393323
684254
391403
486632
392655
741539
486646
391384
467073
381964
400707
449108
452204
401048
413048
413789
486640
702927
418552
460676
469062
486643
465250
469976
479707
499243
479703
479710
381901
515065
694178
418548
465228
486634
500679
460655
479739
402678
479728
557336
459340
469984
479723
465239
496095
525071
583143
469060
479727
472023
499269
730386
420200
579406
597892
497934
482602
482688
479700
497941
479726
486648
653580
563875
432359
522357
469589
498617
483940
]
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 (468239 , 388077 , 758198 , 479701 , 163370 , 393323 , 684254 , 391403 , 486632 , 392655 , 741539 , 486646 , 391384 , 467073 , 381964 , 400707 , 449108 , 452204 , 401048 , 413048 , 413789 , 486640 , 702927 , 418552 , 460676 , 469062 , 486643 , 465250 , 469976 , 479707 , 499243 , 479703 , 479710 , 381901 , 515065 , 694178 , 418548 , 465228 , 486634 , 500679 , 460655 , 479739 , 402678 , 479728 , 557336 , 459340 , 469984 , 479723 , 465239 , 496095 , 525071 , 583143 , 469060 , 479727 , 472023 , 499269 , 730386 , 420200 , 579406 , 597892 , 497934 , 482602 , 482688 , 479700 , 497941 , 479726 , 486648 , 653580 , 563875 , 432359 , 522357 , 469589 , 498617 , 483940 );
Copy
4
210.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
163370
381901
381964
388077
391384
391403
392655
393323
400707
401048
402678
413048
413789
418548
418552
420200
432359
449108
452204
459340
460655
460676
465228
465239
465250
467073
468239
469060
469062
469589
469976
469984
472023
479700
479701
479703
479707
479710
479723
479726
479727
479728
479739
482602
482688
483940
486632
486634
486640
486643
486646
486648
496095
497934
497941
498617
499243
499269
500679
515065
522357
525071
557336
563875
579406
583143
597892
653580
684254
694178
702927
730386
741539
758198
]
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 (163370 , 381901 , 381964 , 388077 , 391384 , 391403 , 392655 , 393323 , 400707 , 401048 , 402678 , 413048 , 413789 , 418548 , 418552 , 420200 , 432359 , 449108 , 452204 , 459340 , 460655 , 460676 , 465228 , 465239 , 465250 , 467073 , 468239 , 469060 , 469062 , 469589 , 469976 , 469984 , 472023 , 479700 , 479701 , 479703 , 479707 , 479710 , 479723 , 479726 , 479727 , 479728 , 479739 , 482602 , 482688 , 483940 , 486632 , 486634 , 486640 , 486643 , 486646 , 486648 , 496095 , 497934 , 497941 , 498617 , 499243 , 499269 , 500679 , 515065 , 522357 , 525071 , 557336 , 563875 , 579406 , 583143 , 597892 , 653580 , 684254 , 694178 , 702927 , 730386 , 741539 , 758198 );
Copy
5
94.24 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
163370
381901
381964
388077
391384
391403
392655
393323
400707
401048
402678
413048
413789
418548
418552
420200
432359
449108
452204
459340
460655
460676
465228
465239
465250
467073
468239
469060
469062
469589
469976
469984
472023
479700
479701
479703
479707
479710
479723
479726
479727
479728
479739
482602
482688
483940
486632
486634
486640
486643
486646
486648
496095
497934
497941
498617
499243
499269
500679
515065
522357
525071
557336
563875
579406
583143
597892
653580
684254
694178
702927
730386
741539
758198
]
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 (163370 , 381901 , 381964 , 388077 , 391384 , 391403 , 392655 , 393323 , 400707 , 401048 , 402678 , 413048 , 413789 , 418548 , 418552 , 420200 , 432359 , 449108 , 452204 , 459340 , 460655 , 460676 , 465228 , 465239 , 465250 , 467073 , 468239 , 469060 , 469062 , 469589 , 469976 , 469984 , 472023 , 479700 , 479701 , 479703 , 479707 , 479710 , 479723 , 479726 , 479727 , 479728 , 479739 , 482602 , 482688 , 483940 , 486632 , 486634 , 486640 , 486643 , 486646 , 486648 , 496095 , 497934 , 497941 , 498617 , 499243 , 499269 , 500679 , 515065 , 522357 , 525071 , 557336 , 563875 , 579406 , 583143 , 597892 , 653580 , 684254 , 694178 , 702927 , 730386 , 741539 , 758198 );
Copy