3
11.18 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
631021
770939
762564
385912
643201
89769
617895
655789
765409
671076
793211
758975
744390
793389
809037
213113
705351
265858
656200
4375
497843
580216
206386
566359
532486
509651
590277
810214
772480
762241
506229
650540
694308
727622
556448
520345
552076
460525
120021
412303
486710
580449
567361
546213
497941
717550
506149
516023
596063
600458
563246
641764
491899
601662
404845
544012
603858
618371
445077
500581
547241
625172
525175
625906
515545
597480
617134
]
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 (631021 , 770939 , 762564 , 385912 , 643201 , 89769 , 617895 , 655789 , 765409 , 671076 , 793211 , 758975 , 744390 , 793389 , 809037 , 213113 , 705351 , 265858 , 656200 , 4375 , 497843 , 580216 , 206386 , 566359 , 532486 , 509651 , 590277 , 810214 , 772480 , 762241 , 506229 , 650540 , 694308 , 727622 , 556448 , 520345 , 552076 , 460525 , 120021 , 412303 , 486710 , 580449 , 567361 , 546213 , 497941 , 717550 , 506149 , 516023 , 596063 , 600458 , 563246 , 641764 , 491899 , 601662 , 404845 , 544012 , 603858 , 618371 , 445077 , 500581 , 547241 , 625172 , 525175 , 625906 , 515545 , 597480 , 617134 );
Copy
4
2.68 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
4375
89769
120021
206386
213113
265858
385912
404845
412303
445077
460525
486710
491899
497843
497941
500581
506149
506229
509651
515545
516023
520345
525175
532486
544012
546213
547241
552076
556448
563246
566359
567361
580216
580449
590277
596063
597480
600458
601662
603858
617134
617895
618371
625172
625906
631021
641764
643201
650540
655789
656200
671076
694308
705351
717550
727622
744390
758975
762241
762564
765409
770939
772480
793211
793389
809037
810214
]
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 (4375 , 89769 , 120021 , 206386 , 213113 , 265858 , 385912 , 404845 , 412303 , 445077 , 460525 , 486710 , 491899 , 497843 , 497941 , 500581 , 506149 , 506229 , 509651 , 515545 , 516023 , 520345 , 525175 , 532486 , 544012 , 546213 , 547241 , 552076 , 556448 , 563246 , 566359 , 567361 , 580216 , 580449 , 590277 , 596063 , 597480 , 600458 , 601662 , 603858 , 617134 , 617895 , 618371 , 625172 , 625906 , 631021 , 641764 , 643201 , 650540 , 655789 , 656200 , 671076 , 694308 , 705351 , 717550 , 727622 , 744390 , 758975 , 762241 , 762564 , 765409 , 770939 , 772480 , 793211 , 793389 , 809037 , 810214 );
Copy
5
174.94 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
4375
89769
120021
206386
213113
265858
385912
404845
412303
445077
460525
486710
491899
497843
497941
500581
506149
506229
509651
515545
516023
520345
525175
532486
544012
546213
547241
552076
556448
563246
566359
567361
580216
580449
590277
596063
597480
600458
601662
603858
617134
617895
618371
625172
625906
631021
641764
643201
650540
655789
656200
671076
694308
705351
717550
727622
744390
758975
762241
762564
765409
770939
772480
793211
793389
809037
810214
]
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 (4375 , 89769 , 120021 , 206386 , 213113 , 265858 , 385912 , 404845 , 412303 , 445077 , 460525 , 486710 , 491899 , 497843 , 497941 , 500581 , 506149 , 506229 , 509651 , 515545 , 516023 , 520345 , 525175 , 532486 , 544012 , 546213 , 547241 , 552076 , 556448 , 563246 , 566359 , 567361 , 580216 , 580449 , 590277 , 596063 , 597480 , 600458 , 601662 , 603858 , 617134 , 617895 , 618371 , 625172 , 625906 , 631021 , 641764 , 643201 , 650540 , 655789 , 656200 , 671076 , 694308 , 705351 , 717550 , 727622 , 744390 , 758975 , 762241 , 762564 , 765409 , 770939 , 772480 , 793211 , 793389 , 809037 , 810214 );
Copy