4
12.42 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
554157
554140
554141
819757
548290
817494
697575
812769
384518
564646
409174
580664
556732
413576
724707
516366
383039
642295
753181
461815
688646
638864
537021
406659
517266
587536
382205
462044
434320
485418
576840
698887
701573
625472
618046
484546
575724
578255
559820
557213
586919
810984
748257
429559
460863
523222
388845
445060
448745
714776
593390
623847
627660
481444
522569
482520
599725
598858
511554
452500
529177
522971
422411
590404
601324
]
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 (554157 , 554140 , 554141 , 819757 , 548290 , 817494 , 697575 , 812769 , 384518 , 564646 , 409174 , 580664 , 556732 , 413576 , 724707 , 516366 , 383039 , 642295 , 753181 , 461815 , 688646 , 638864 , 537021 , 406659 , 517266 , 587536 , 382205 , 462044 , 434320 , 485418 , 576840 , 698887 , 701573 , 625472 , 618046 , 484546 , 575724 , 578255 , 559820 , 557213 , 586919 , 810984 , 748257 , 429559 , 460863 , 523222 , 388845 , 445060 , 448745 , 714776 , 593390 , 623847 , 627660 , 481444 , 522569 , 482520 , 599725 , 598858 , 511554 , 452500 , 529177 , 522971 , 422411 , 590404 , 601324 );
Copy
5
2.77 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
382205
383039
384518
388845
406659
409174
413576
422411
429559
434320
445060
448745
452500
460863
461815
462044
481444
482520
484546
485418
511554
516366
517266
522569
522971
523222
529177
537021
548290
554140
554141
554157
557213
559820
564646
575724
576840
578255
580664
586919
587536
590404
593390
598858
599725
601324
618046
623847
625472
627660
638864
642295
688646
697575
698887
701573
714776
724707
748257
753181
810984
812769
817494
819757
]
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 (382205 , 383039 , 384518 , 388845 , 406659 , 409174 , 413576 , 422411 , 429559 , 434320 , 445060 , 448745 , 452500 , 460863 , 461815 , 462044 , 481444 , 482520 , 484546 , 485418 , 511554 , 516366 , 517266 , 522569 , 522971 , 523222 , 529177 , 537021 , 548290 , 554140 , 554141 , 554157 , 557213 , 559820 , 564646 , 575724 , 576840 , 578255 , 580664 , 586919 , 587536 , 590404 , 593390 , 598858 , 599725 , 601324 , 618046 , 623847 , 625472 , 627660 , 638864 , 642295 , 688646 , 697575 , 698887 , 701573 , 714776 , 724707 , 748257 , 753181 , 810984 , 812769 , 817494 , 819757 );
Copy
6
70.75 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
382205
383039
384518
388845
406659
409174
413576
422411
429559
434320
445060
448745
452500
460863
461815
462044
481444
482520
484546
485418
511554
516366
517266
522569
522971
523222
529177
537021
548290
554140
554141
554157
557213
559820
564646
575724
576840
578255
580664
586919
587536
590404
593390
598858
599725
601324
618046
623847
625472
627660
638864
642295
688646
697575
698887
701573
714776
724707
748257
753181
810984
812769
817494
819757
]
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 (382205 , 383039 , 384518 , 388845 , 406659 , 409174 , 413576 , 422411 , 429559 , 434320 , 445060 , 448745 , 452500 , 460863 , 461815 , 462044 , 481444 , 482520 , 484546 , 485418 , 511554 , 516366 , 517266 , 522569 , 522971 , 523222 , 529177 , 537021 , 548290 , 554140 , 554141 , 554157 , 557213 , 559820 , 564646 , 575724 , 576840 , 578255 , 580664 , 586919 , 587536 , 590404 , 593390 , 598858 , 599725 , 601324 , 618046 , 623847 , 625472 , 627660 , 638864 , 642295 , 688646 , 697575 , 698887 , 701573 , 714776 , 724707 , 748257 , 753181 , 810984 , 812769 , 817494 , 819757 );
Copy