3
10.23 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
662897
570868
752477
554163
439290
34201
581550
478521
503298
800143
396447
436977
386725
658931
768234
105168
712615
382066
478516
677148
606594
800134
794082
436965
704613
624128
581551
523176
423950
426051
423943
790283
468722
568111
516588
704591
641313
466903
476475
581373
785492
469150
592604
459485
526436
607118
521294
509430
576583
807881
387556
636624
493882
514946
630105
587035
549256
457063
809290
492736
591959
]
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 (662897 , 570868 , 752477 , 554163 , 439290 , 34201 , 581550 , 478521 , 503298 , 800143 , 396447 , 436977 , 386725 , 658931 , 768234 , 105168 , 712615 , 382066 , 478516 , 677148 , 606594 , 800134 , 794082 , 436965 , 704613 , 624128 , 581551 , 523176 , 423950 , 426051 , 423943 , 790283 , 468722 , 568111 , 516588 , 704591 , 641313 , 466903 , 476475 , 581373 , 785492 , 469150 , 592604 , 459485 , 526436 , 607118 , 521294 , 509430 , 576583 , 807881 , 387556 , 636624 , 493882 , 514946 , 630105 , 587035 , 549256 , 457063 , 809290 , 492736 , 591959 );
Copy
4
2.22 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
34201
105168
382066
386725
387556
396447
423943
423950
426051
436965
436977
439290
457063
459485
466903
468722
469150
476475
478516
478521
492736
493882
503298
509430
514946
516588
521294
523176
526436
549256
554163
568111
570868
576583
581373
581550
581551
587035
591959
592604
606594
607118
624128
630105
636624
641313
658931
662897
677148
704591
704613
712615
752477
768234
785492
790283
794082
800134
800143
807881
809290
]
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 (34201 , 105168 , 382066 , 386725 , 387556 , 396447 , 423943 , 423950 , 426051 , 436965 , 436977 , 439290 , 457063 , 459485 , 466903 , 468722 , 469150 , 476475 , 478516 , 478521 , 492736 , 493882 , 503298 , 509430 , 514946 , 516588 , 521294 , 523176 , 526436 , 549256 , 554163 , 568111 , 570868 , 576583 , 581373 , 581550 , 581551 , 587035 , 591959 , 592604 , 606594 , 607118 , 624128 , 630105 , 636624 , 641313 , 658931 , 662897 , 677148 , 704591 , 704613 , 712615 , 752477 , 768234 , 785492 , 790283 , 794082 , 800134 , 800143 , 807881 , 809290 );
Copy
5
101.94 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
34201
105168
382066
386725
387556
396447
423943
423950
426051
436965
436977
439290
457063
459485
466903
468722
469150
476475
478516
478521
492736
493882
503298
509430
514946
516588
521294
523176
526436
549256
554163
568111
570868
576583
581373
581550
581551
587035
591959
592604
606594
607118
624128
630105
636624
641313
658931
662897
677148
704591
704613
712615
752477
768234
785492
790283
794082
800134
800143
807881
809290
]
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 (34201 , 105168 , 382066 , 386725 , 387556 , 396447 , 423943 , 423950 , 426051 , 436965 , 436977 , 439290 , 457063 , 459485 , 466903 , 468722 , 469150 , 476475 , 478516 , 478521 , 492736 , 493882 , 503298 , 509430 , 514946 , 516588 , 521294 , 523176 , 526436 , 549256 , 554163 , 568111 , 570868 , 576583 , 581373 , 581550 , 581551 , 587035 , 591959 , 592604 , 606594 , 607118 , 624128 , 630105 , 636624 , 641313 , 658931 , 662897 , 677148 , 704591 , 704613 , 712615 , 752477 , 768234 , 785492 , 790283 , 794082 , 800134 , 800143 , 807881 , 809290 );
Copy