3
12.40 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
545871
826443
810287
827055
471566
715161
694175
615085
805317
731142
610590
714421
732197
745005
721961
57952
425268
693228
701225
715069
471966
556396
530539
522420
719850
732622
437985
714424
621775
637450
795621
472303
726637
426486
507183
558275
798982
758486
428074
679455
486923
445699
538991
465088
737465
472131
497120
495685
723263
741003
761675
610721
457263
442754
489790
594887
590602
759135
493914
402596
557836
611295
624797
516819
662879
492336
464530
552801
628161
572767
519521
493163
]
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 (545871 , 826443 , 810287 , 827055 , 471566 , 715161 , 694175 , 615085 , 805317 , 731142 , 610590 , 714421 , 732197 , 745005 , 721961 , 57952 , 425268 , 693228 , 701225 , 715069 , 471966 , 556396 , 530539 , 522420 , 719850 , 732622 , 437985 , 714424 , 621775 , 637450 , 795621 , 472303 , 726637 , 426486 , 507183 , 558275 , 798982 , 758486 , 428074 , 679455 , 486923 , 445699 , 538991 , 465088 , 737465 , 472131 , 497120 , 495685 , 723263 , 741003 , 761675 , 610721 , 457263 , 442754 , 489790 , 594887 , 590602 , 759135 , 493914 , 402596 , 557836 , 611295 , 624797 , 516819 , 662879 , 492336 , 464530 , 552801 , 628161 , 572767 , 519521 , 493163 );
Copy
4
2.26 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
57952
402596
425268
426486
428074
437985
442754
445699
457263
464530
465088
471566
471966
472131
472303
486923
489790
492336
493163
493914
495685
497120
507183
516819
519521
522420
530539
538991
545871
552801
556396
557836
558275
572767
590602
594887
610590
610721
611295
615085
621775
624797
628161
637450
662879
679455
693228
694175
701225
714421
714424
715069
715161
719850
721961
723263
726637
731142
732197
732622
737465
741003
745005
758486
759135
761675
795621
798982
805317
810287
826443
827055
]
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 (57952 , 402596 , 425268 , 426486 , 428074 , 437985 , 442754 , 445699 , 457263 , 464530 , 465088 , 471566 , 471966 , 472131 , 472303 , 486923 , 489790 , 492336 , 493163 , 493914 , 495685 , 497120 , 507183 , 516819 , 519521 , 522420 , 530539 , 538991 , 545871 , 552801 , 556396 , 557836 , 558275 , 572767 , 590602 , 594887 , 610590 , 610721 , 611295 , 615085 , 621775 , 624797 , 628161 , 637450 , 662879 , 679455 , 693228 , 694175 , 701225 , 714421 , 714424 , 715069 , 715161 , 719850 , 721961 , 723263 , 726637 , 731142 , 732197 , 732622 , 737465 , 741003 , 745005 , 758486 , 759135 , 761675 , 795621 , 798982 , 805317 , 810287 , 826443 , 827055 );
Copy
5
291.14 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
57952
402596
425268
426486
428074
437985
442754
445699
457263
464530
465088
471566
471966
472131
472303
486923
489790
492336
493163
493914
495685
497120
507183
516819
519521
522420
530539
538991
545871
552801
556396
557836
558275
572767
590602
594887
610590
610721
611295
615085
621775
624797
628161
637450
662879
679455
693228
694175
701225
714421
714424
715069
715161
719850
721961
723263
726637
731142
732197
732622
737465
741003
745005
758486
759135
761675
795621
798982
805317
810287
826443
827055
]
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 (57952 , 402596 , 425268 , 426486 , 428074 , 437985 , 442754 , 445699 , 457263 , 464530 , 465088 , 471566 , 471966 , 472131 , 472303 , 486923 , 489790 , 492336 , 493163 , 493914 , 495685 , 497120 , 507183 , 516819 , 519521 , 522420 , 530539 , 538991 , 545871 , 552801 , 556396 , 557836 , 558275 , 572767 , 590602 , 594887 , 610590 , 610721 , 611295 , 615085 , 621775 , 624797 , 628161 , 637450 , 662879 , 679455 , 693228 , 694175 , 701225 , 714421 , 714424 , 715069 , 715161 , 719850 , 721961 , 723263 , 726637 , 731142 , 732197 , 732622 , 737465 , 741003 , 745005 , 758486 , 759135 , 761675 , 795621 , 798982 , 805317 , 810287 , 826443 , 827055 );
Copy