3
8.74 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
507626
733403
787535
700947
771235
746457
766317
676995
555560
631625
609630
722409
683504
743966
715261
544026
769188
736740
741853
785651
797918
750376
785170
810145
723702
773152
745914
404101
551589
616007
624961
778246
812378
765182
487254
648669
700965
605387
786912
808562
741851
758078
466704
554674
740556
804081
552336
607288
735555
467895
449626
458111
458909
658796
617047
787363
419352
447712
582262
434365
411036
418714
434335
439428
521786
542042
451774
489615
521798
]
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 (507626 , 733403 , 787535 , 700947 , 771235 , 746457 , 766317 , 676995 , 555560 , 631625 , 609630 , 722409 , 683504 , 743966 , 715261 , 544026 , 769188 , 736740 , 741853 , 785651 , 797918 , 750376 , 785170 , 810145 , 723702 , 773152 , 745914 , 404101 , 551589 , 616007 , 624961 , 778246 , 812378 , 765182 , 487254 , 648669 , 700965 , 605387 , 786912 , 808562 , 741851 , 758078 , 466704 , 554674 , 740556 , 804081 , 552336 , 607288 , 735555 , 467895 , 449626 , 458111 , 458909 , 658796 , 617047 , 787363 , 419352 , 447712 , 582262 , 434365 , 411036 , 418714 , 434335 , 439428 , 521786 , 542042 , 451774 , 489615 , 521798 );
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
404101
411036
418714
419352
434335
434365
439428
447712
449626
451774
458111
458909
466704
467895
487254
489615
507626
521786
521798
542042
544026
551589
552336
554674
555560
582262
605387
607288
609630
616007
617047
624961
631625
648669
658796
676995
683504
700947
700965
715261
722409
723702
733403
735555
736740
740556
741851
741853
743966
745914
746457
750376
758078
765182
766317
769188
771235
773152
778246
785170
785651
786912
787363
787535
797918
804081
808562
810145
812378
]
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 (404101 , 411036 , 418714 , 419352 , 434335 , 434365 , 439428 , 447712 , 449626 , 451774 , 458111 , 458909 , 466704 , 467895 , 487254 , 489615 , 507626 , 521786 , 521798 , 542042 , 544026 , 551589 , 552336 , 554674 , 555560 , 582262 , 605387 , 607288 , 609630 , 616007 , 617047 , 624961 , 631625 , 648669 , 658796 , 676995 , 683504 , 700947 , 700965 , 715261 , 722409 , 723702 , 733403 , 735555 , 736740 , 740556 , 741851 , 741853 , 743966 , 745914 , 746457 , 750376 , 758078 , 765182 , 766317 , 769188 , 771235 , 773152 , 778246 , 785170 , 785651 , 786912 , 787363 , 787535 , 797918 , 804081 , 808562 , 810145 , 812378 );
Copy
5
84.81 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
404101
411036
418714
419352
434335
434365
439428
447712
449626
451774
458111
458909
466704
467895
487254
489615
507626
521786
521798
542042
544026
551589
552336
554674
555560
582262
605387
607288
609630
616007
617047
624961
631625
648669
658796
676995
683504
700947
700965
715261
722409
723702
733403
735555
736740
740556
741851
741853
743966
745914
746457
750376
758078
765182
766317
769188
771235
773152
778246
785170
785651
786912
787363
787535
797918
804081
808562
810145
812378
]
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 (404101 , 411036 , 418714 , 419352 , 434335 , 434365 , 439428 , 447712 , 449626 , 451774 , 458111 , 458909 , 466704 , 467895 , 487254 , 489615 , 507626 , 521786 , 521798 , 542042 , 544026 , 551589 , 552336 , 554674 , 555560 , 582262 , 605387 , 607288 , 609630 , 616007 , 617047 , 624961 , 631625 , 648669 , 658796 , 676995 , 683504 , 700947 , 700965 , 715261 , 722409 , 723702 , 733403 , 735555 , 736740 , 740556 , 741851 , 741853 , 743966 , 745914 , 746457 , 750376 , 758078 , 765182 , 766317 , 769188 , 771235 , 773152 , 778246 , 785170 , 785651 , 786912 , 787363 , 787535 , 797918 , 804081 , 808562 , 810145 , 812378 );
Copy