3
11.39 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
673111
591086
504601
673063
599006
617680
560151
560154
673092
673093
607123
560141
560143
560149
604151
516402
506667
560146
588304
817477
689342
560157
560152
560150
689274
754188
579362
689345
585722
602969
607605
489920
572034
673661
553454
553452
689672
476439
469722
491862
560148
689693
689684
586643
508780
585023
476432
459605
522563
491682
550052
593533
598861
425957
492521
607293
489901
520926
689736
560153
468856
525663
523629
553446
605355
487067
553448
689614
792627
483223
]
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 (673111 , 591086 , 504601 , 673063 , 599006 , 617680 , 560151 , 560154 , 673092 , 673093 , 607123 , 560141 , 560143 , 560149 , 604151 , 516402 , 506667 , 560146 , 588304 , 817477 , 689342 , 560157 , 560152 , 560150 , 689274 , 754188 , 579362 , 689345 , 585722 , 602969 , 607605 , 489920 , 572034 , 673661 , 553454 , 553452 , 689672 , 476439 , 469722 , 491862 , 560148 , 689693 , 689684 , 586643 , 508780 , 585023 , 476432 , 459605 , 522563 , 491682 , 550052 , 593533 , 598861 , 425957 , 492521 , 607293 , 489901 , 520926 , 689736 , 560153 , 468856 , 525663 , 523629 , 553446 , 605355 , 487067 , 553448 , 689614 , 792627 , 483223 );
Copy
4
2.65 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
425957
459605
468856
469722
476432
476439
483223
487067
489901
489920
491682
491862
492521
504601
506667
508780
516402
520926
522563
523629
525663
550052
553446
553448
553452
553454
560141
560143
560146
560148
560149
560150
560151
560152
560153
560154
560157
572034
579362
585023
585722
586643
588304
591086
593533
598861
599006
602969
604151
605355
607123
607293
607605
617680
673063
673092
673093
673111
673661
689274
689342
689345
689614
689672
689684
689693
689736
754188
792627
817477
]
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 (425957 , 459605 , 468856 , 469722 , 476432 , 476439 , 483223 , 487067 , 489901 , 489920 , 491682 , 491862 , 492521 , 504601 , 506667 , 508780 , 516402 , 520926 , 522563 , 523629 , 525663 , 550052 , 553446 , 553448 , 553452 , 553454 , 560141 , 560143 , 560146 , 560148 , 560149 , 560150 , 560151 , 560152 , 560153 , 560154 , 560157 , 572034 , 579362 , 585023 , 585722 , 586643 , 588304 , 591086 , 593533 , 598861 , 599006 , 602969 , 604151 , 605355 , 607123 , 607293 , 607605 , 617680 , 673063 , 673092 , 673093 , 673111 , 673661 , 689274 , 689342 , 689345 , 689614 , 689672 , 689684 , 689693 , 689736 , 754188 , 792627 , 817477 );
Copy
5
107.93 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
425957
459605
468856
469722
476432
476439
483223
487067
489901
489920
491682
491862
492521
504601
506667
508780
516402
520926
522563
523629
525663
550052
553446
553448
553452
553454
560141
560143
560146
560148
560149
560150
560151
560152
560153
560154
560157
572034
579362
585023
585722
586643
588304
591086
593533
598861
599006
602969
604151
605355
607123
607293
607605
617680
673063
673092
673093
673111
673661
689274
689342
689345
689614
689672
689684
689693
689736
754188
792627
817477
]
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 (425957 , 459605 , 468856 , 469722 , 476432 , 476439 , 483223 , 487067 , 489901 , 489920 , 491682 , 491862 , 492521 , 504601 , 506667 , 508780 , 516402 , 520926 , 522563 , 523629 , 525663 , 550052 , 553446 , 553448 , 553452 , 553454 , 560141 , 560143 , 560146 , 560148 , 560149 , 560150 , 560151 , 560152 , 560153 , 560154 , 560157 , 572034 , 579362 , 585023 , 585722 , 586643 , 588304 , 591086 , 593533 , 598861 , 599006 , 602969 , 604151 , 605355 , 607123 , 607293 , 607605 , 617680 , 673063 , 673092 , 673093 , 673111 , 673661 , 689274 , 689342 , 689345 , 689614 , 689672 , 689684 , 689693 , 689736 , 754188 , 792627 , 817477 );
Copy