4
220.61 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
757895
560370
743938
724602
817737
531353
550044
795111
805101
665989
555703
521753
542181
701009
795127
527237
538567
555829
798165
726369
487371
504634
721687
810887
428567
814226
529155
575453
700969
603042
596567
810447
619852
787118
488138
487089
503460
542422
552357
552332
563398
696429
637444
599289
440770
123614
455189
466895
480007
497034
523494
424049
483236
416255
503288
557976
492926
506464
417866
516989
676989
607230
625441
520753
614906
625439
520759
]
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 (757895 , 560370 , 743938 , 724602 , 817737 , 531353 , 550044 , 795111 , 805101 , 665989 , 555703 , 521753 , 542181 , 701009 , 795127 , 527237 , 538567 , 555829 , 798165 , 726369 , 487371 , 504634 , 721687 , 810887 , 428567 , 814226 , 529155 , 575453 , 700969 , 603042 , 596567 , 810447 , 619852 , 787118 , 488138 , 487089 , 503460 , 542422 , 552357 , 552332 , 563398 , 696429 , 637444 , 599289 , 440770 , 123614 , 455189 , 466895 , 480007 , 497034 , 523494 , 424049 , 483236 , 416255 , 503288 , 557976 , 492926 , 506464 , 417866 , 516989 , 676989 , 607230 , 625441 , 520753 , 614906 , 625439 , 520759 );
Copy
5
2.41 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
123614
416255
417866
424049
428567
440770
455189
466895
480007
483236
487089
487371
488138
492926
497034
503288
503460
504634
506464
516989
520753
520759
521753
523494
527237
529155
531353
538567
542181
542422
550044
552332
552357
555703
555829
557976
560370
563398
575453
596567
599289
603042
607230
614906
619852
625439
625441
637444
665989
676989
696429
700969
701009
721687
724602
726369
743938
757895
787118
795111
795127
798165
805101
810447
810887
814226
817737
]
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 (123614 , 416255 , 417866 , 424049 , 428567 , 440770 , 455189 , 466895 , 480007 , 483236 , 487089 , 487371 , 488138 , 492926 , 497034 , 503288 , 503460 , 504634 , 506464 , 516989 , 520753 , 520759 , 521753 , 523494 , 527237 , 529155 , 531353 , 538567 , 542181 , 542422 , 550044 , 552332 , 552357 , 555703 , 555829 , 557976 , 560370 , 563398 , 575453 , 596567 , 599289 , 603042 , 607230 , 614906 , 619852 , 625439 , 625441 , 637444 , 665989 , 676989 , 696429 , 700969 , 701009 , 721687 , 724602 , 726369 , 743938 , 757895 , 787118 , 795111 , 795127 , 798165 , 805101 , 810447 , 810887 , 814226 , 817737 );
Copy
6
78.87 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
123614
416255
417866
424049
428567
440770
455189
466895
480007
483236
487089
487371
488138
492926
497034
503288
503460
504634
506464
516989
520753
520759
521753
523494
527237
529155
531353
538567
542181
542422
550044
552332
552357
555703
555829
557976
560370
563398
575453
596567
599289
603042
607230
614906
619852
625439
625441
637444
665989
676989
696429
700969
701009
721687
724602
726369
743938
757895
787118
795111
795127
798165
805101
810447
810887
814226
817737
]
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 (123614 , 416255 , 417866 , 424049 , 428567 , 440770 , 455189 , 466895 , 480007 , 483236 , 487089 , 487371 , 488138 , 492926 , 497034 , 503288 , 503460 , 504634 , 506464 , 516989 , 520753 , 520759 , 521753 , 523494 , 527237 , 529155 , 531353 , 538567 , 542181 , 542422 , 550044 , 552332 , 552357 , 555703 , 555829 , 557976 , 560370 , 563398 , 575453 , 596567 , 599289 , 603042 , 607230 , 614906 , 619852 , 625439 , 625441 , 637444 , 665989 , 676989 , 696429 , 700969 , 701009 , 721687 , 724602 , 726369 , 743938 , 757895 , 787118 , 795111 , 795127 , 798165 , 805101 , 810447 , 810887 , 814226 , 817737 );
Copy