3
7.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
584095
685282
698765
704265
758762
610144
785436
677969
780658
792577
804022
469388
748017
664518
780672
738356
772881
807603
502810
738358
681609
727915
807973
738333
738316
489321
511424
499328
771359
666993
793360
666391
801053
732991
499338
808236
629817
506066
621750
643071
734047
728468
730315
738347
622503
796826
766597
618052
784475
742385
668412
554517
578204
681298
807980
593046
602668
603254
597867
500458
543924
531316
]
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 (584095 , 685282 , 698765 , 704265 , 758762 , 610144 , 785436 , 677969 , 780658 , 792577 , 804022 , 469388 , 748017 , 664518 , 780672 , 738356 , 772881 , 807603 , 502810 , 738358 , 681609 , 727915 , 807973 , 738333 , 738316 , 489321 , 511424 , 499328 , 771359 , 666993 , 793360 , 666391 , 801053 , 732991 , 499338 , 808236 , 629817 , 506066 , 621750 , 643071 , 734047 , 728468 , 730315 , 738347 , 622503 , 796826 , 766597 , 618052 , 784475 , 742385 , 668412 , 554517 , 578204 , 681298 , 807980 , 593046 , 602668 , 603254 , 597867 , 500458 , 543924 , 531316 );
Copy
4
2.91 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
469388
489321
499328
499338
500458
502810
506066
511424
531316
543924
554517
578204
584095
593046
597867
602668
603254
610144
618052
621750
622503
629817
643071
664518
666391
666993
668412
677969
681298
681609
685282
698765
704265
727915
728468
730315
732991
734047
738316
738333
738347
738356
738358
742385
748017
758762
766597
771359
772881
780658
780672
784475
785436
792577
793360
796826
801053
804022
807603
807973
807980
808236
]
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 (469388 , 489321 , 499328 , 499338 , 500458 , 502810 , 506066 , 511424 , 531316 , 543924 , 554517 , 578204 , 584095 , 593046 , 597867 , 602668 , 603254 , 610144 , 618052 , 621750 , 622503 , 629817 , 643071 , 664518 , 666391 , 666993 , 668412 , 677969 , 681298 , 681609 , 685282 , 698765 , 704265 , 727915 , 728468 , 730315 , 732991 , 734047 , 738316 , 738333 , 738347 , 738356 , 738358 , 742385 , 748017 , 758762 , 766597 , 771359 , 772881 , 780658 , 780672 , 784475 , 785436 , 792577 , 793360 , 796826 , 801053 , 804022 , 807603 , 807973 , 807980 , 808236 );
Copy
5
137.86 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
469388
489321
499328
499338
500458
502810
506066
511424
531316
543924
554517
578204
584095
593046
597867
602668
603254
610144
618052
621750
622503
629817
643071
664518
666391
666993
668412
677969
681298
681609
685282
698765
704265
727915
728468
730315
732991
734047
738316
738333
738347
738356
738358
742385
748017
758762
766597
771359
772881
780658
780672
784475
785436
792577
793360
796826
801053
804022
807603
807973
807980
808236
]
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 (469388 , 489321 , 499328 , 499338 , 500458 , 502810 , 506066 , 511424 , 531316 , 543924 , 554517 , 578204 , 584095 , 593046 , 597867 , 602668 , 603254 , 610144 , 618052 , 621750 , 622503 , 629817 , 643071 , 664518 , 666391 , 666993 , 668412 , 677969 , 681298 , 681609 , 685282 , 698765 , 704265 , 727915 , 728468 , 730315 , 732991 , 734047 , 738316 , 738333 , 738347 , 738356 , 738358 , 742385 , 748017 , 758762 , 766597 , 771359 , 772881 , 780658 , 780672 , 784475 , 785436 , 792577 , 793360 , 796826 , 801053 , 804022 , 807603 , 807973 , 807980 , 808236 );
Copy