3
12.76 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
664531
636252
650572
527889
823959
724864
827281
825306
748114
534691
734174
738179
714543
740761
760412
715442
537140
826990
794664
700914
695840
742102
740726
731297
823581
536531
737933
653963
651029
614367
740859
734473
577197
738463
739743
742763
803956
703284
628602
744203
540788
584178
812379
605285
726282
589654
709651
610104
762804
465375
452351
565734
444254
630850
589664
758346
481926
528816
717274
742369
507111
547536
520604
543114
640888
533290
519347
]
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 (664531 , 636252 , 650572 , 527889 , 823959 , 724864 , 827281 , 825306 , 748114 , 534691 , 734174 , 738179 , 714543 , 740761 , 760412 , 715442 , 537140 , 826990 , 794664 , 700914 , 695840 , 742102 , 740726 , 731297 , 823581 , 536531 , 737933 , 653963 , 651029 , 614367 , 740859 , 734473 , 577197 , 738463 , 739743 , 742763 , 803956 , 703284 , 628602 , 744203 , 540788 , 584178 , 812379 , 605285 , 726282 , 589654 , 709651 , 610104 , 762804 , 465375 , 452351 , 565734 , 444254 , 630850 , 589664 , 758346 , 481926 , 528816 , 717274 , 742369 , 507111 , 547536 , 520604 , 543114 , 640888 , 533290 , 519347 );
Copy
4
3.02 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
444254
452351
465375
481926
507111
519347
520604
527889
528816
533290
534691
536531
537140
540788
543114
547536
565734
577197
584178
589654
589664
605285
610104
614367
628602
630850
636252
640888
650572
651029
653963
664531
695840
700914
703284
709651
714543
715442
717274
724864
726282
731297
734174
734473
737933
738179
738463
739743
740726
740761
740859
742102
742369
742763
744203
748114
758346
760412
762804
794664
803956
812379
823581
823959
825306
826990
827281
]
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 (444254 , 452351 , 465375 , 481926 , 507111 , 519347 , 520604 , 527889 , 528816 , 533290 , 534691 , 536531 , 537140 , 540788 , 543114 , 547536 , 565734 , 577197 , 584178 , 589654 , 589664 , 605285 , 610104 , 614367 , 628602 , 630850 , 636252 , 640888 , 650572 , 651029 , 653963 , 664531 , 695840 , 700914 , 703284 , 709651 , 714543 , 715442 , 717274 , 724864 , 726282 , 731297 , 734174 , 734473 , 737933 , 738179 , 738463 , 739743 , 740726 , 740761 , 740859 , 742102 , 742369 , 742763 , 744203 , 748114 , 758346 , 760412 , 762804 , 794664 , 803956 , 812379 , 823581 , 823959 , 825306 , 826990 , 827281 );
Copy
5
87.85 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
444254
452351
465375
481926
507111
519347
520604
527889
528816
533290
534691
536531
537140
540788
543114
547536
565734
577197
584178
589654
589664
605285
610104
614367
628602
630850
636252
640888
650572
651029
653963
664531
695840
700914
703284
709651
714543
715442
717274
724864
726282
731297
734174
734473
737933
738179
738463
739743
740726
740761
740859
742102
742369
742763
744203
748114
758346
760412
762804
794664
803956
812379
823581
823959
825306
826990
827281
]
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 (444254 , 452351 , 465375 , 481926 , 507111 , 519347 , 520604 , 527889 , 528816 , 533290 , 534691 , 536531 , 537140 , 540788 , 543114 , 547536 , 565734 , 577197 , 584178 , 589654 , 589664 , 605285 , 610104 , 614367 , 628602 , 630850 , 636252 , 640888 , 650572 , 651029 , 653963 , 664531 , 695840 , 700914 , 703284 , 709651 , 714543 , 715442 , 717274 , 724864 , 726282 , 731297 , 734174 , 734473 , 737933 , 738179 , 738463 , 739743 , 740726 , 740761 , 740859 , 742102 , 742369 , 742763 , 744203 , 748114 , 758346 , 760412 , 762804 , 794664 , 803956 , 812379 , 823581 , 823959 , 825306 , 826990 , 827281 );
Copy