3
14.02 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
517269
543810
556024
427161
395622
396012
428157
512544
523913
513431
515371
527038
487144
492827
495631
527304
527355
506816
509965
512385
513039
522971
523056
527172
430210
459077
466376
473779
481674
492510
518768
425214
429927
437548
480726
418596
438095
441191
446984
479011
487156
513566
448100
471626
452199
535432
471639
526117
509904
475951
445672
523260
554905
526773
504922
424627
592288
501655
525651
524945
405287
521710
513845
515840
519617
464328
]
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 (517269 , 543810 , 556024 , 427161 , 395622 , 396012 , 428157 , 512544 , 523913 , 513431 , 515371 , 527038 , 487144 , 492827 , 495631 , 527304 , 527355 , 506816 , 509965 , 512385 , 513039 , 522971 , 523056 , 527172 , 430210 , 459077 , 466376 , 473779 , 481674 , 492510 , 518768 , 425214 , 429927 , 437548 , 480726 , 418596 , 438095 , 441191 , 446984 , 479011 , 487156 , 513566 , 448100 , 471626 , 452199 , 535432 , 471639 , 526117 , 509904 , 475951 , 445672 , 523260 , 554905 , 526773 , 504922 , 424627 , 592288 , 501655 , 525651 , 524945 , 405287 , 521710 , 513845 , 515840 , 519617 , 464328 );
Copy
4
2.47 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
395622
396012
405287
418596
424627
425214
427161
428157
429927
430210
437548
438095
441191
445672
446984
448100
452199
459077
464328
466376
471626
471639
473779
475951
479011
480726
481674
487144
487156
492510
492827
495631
501655
504922
506816
509904
509965
512385
512544
513039
513431
513566
513845
515371
515840
517269
518768
519617
521710
522971
523056
523260
523913
524945
525651
526117
526773
527038
527172
527304
527355
535432
543810
554905
556024
592288
]
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 (395622 , 396012 , 405287 , 418596 , 424627 , 425214 , 427161 , 428157 , 429927 , 430210 , 437548 , 438095 , 441191 , 445672 , 446984 , 448100 , 452199 , 459077 , 464328 , 466376 , 471626 , 471639 , 473779 , 475951 , 479011 , 480726 , 481674 , 487144 , 487156 , 492510 , 492827 , 495631 , 501655 , 504922 , 506816 , 509904 , 509965 , 512385 , 512544 , 513039 , 513431 , 513566 , 513845 , 515371 , 515840 , 517269 , 518768 , 519617 , 521710 , 522971 , 523056 , 523260 , 523913 , 524945 , 525651 , 526117 , 526773 , 527038 , 527172 , 527304 , 527355 , 535432 , 543810 , 554905 , 556024 , 592288 );
Copy
5
102.53 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
395622
396012
405287
418596
424627
425214
427161
428157
429927
430210
437548
438095
441191
445672
446984
448100
452199
459077
464328
466376
471626
471639
473779
475951
479011
480726
481674
487144
487156
492510
492827
495631
501655
504922
506816
509904
509965
512385
512544
513039
513431
513566
513845
515371
515840
517269
518768
519617
521710
522971
523056
523260
523913
524945
525651
526117
526773
527038
527172
527304
527355
535432
543810
554905
556024
592288
]
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 (395622 , 396012 , 405287 , 418596 , 424627 , 425214 , 427161 , 428157 , 429927 , 430210 , 437548 , 438095 , 441191 , 445672 , 446984 , 448100 , 452199 , 459077 , 464328 , 466376 , 471626 , 471639 , 473779 , 475951 , 479011 , 480726 , 481674 , 487144 , 487156 , 492510 , 492827 , 495631 , 501655 , 504922 , 506816 , 509904 , 509965 , 512385 , 512544 , 513039 , 513431 , 513566 , 513845 , 515371 , 515840 , 517269 , 518768 , 519617 , 521710 , 522971 , 523056 , 523260 , 523913 , 524945 , 525651 , 526117 , 526773 , 527038 , 527172 , 527304 , 527355 , 535432 , 543810 , 554905 , 556024 , 592288 );
Copy