3
11.86 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
705788
601811
789623
392967
6965
406901
461548
808018
737079
789551
441800
383089
413563
484654
471451
485692
491239
516671
539224
502270
806181
517316
326300
390729
411986
445054
419051
546608
663730
747966
437436
458688
429116
476621
484324
509030
484725
522218
460138
472774
503828
514774
552837
467483
506749
504191
510710
444435
453178
459640
474148
466997
466269
447416
528621
466003
536655
559569
443791
466727
461025
601918
520140
466561
]
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 (705788 , 601811 , 789623 , 392967 , 6965 , 406901 , 461548 , 808018 , 737079 , 789551 , 441800 , 383089 , 413563 , 484654 , 471451 , 485692 , 491239 , 516671 , 539224 , 502270 , 806181 , 517316 , 326300 , 390729 , 411986 , 445054 , 419051 , 546608 , 663730 , 747966 , 437436 , 458688 , 429116 , 476621 , 484324 , 509030 , 484725 , 522218 , 460138 , 472774 , 503828 , 514774 , 552837 , 467483 , 506749 , 504191 , 510710 , 444435 , 453178 , 459640 , 474148 , 466997 , 466269 , 447416 , 528621 , 466003 , 536655 , 559569 , 443791 , 466727 , 461025 , 601918 , 520140 , 466561 );
Copy
4
2.60 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
6965
326300
383089
390729
392967
406901
411986
413563
419051
429116
437436
441800
443791
444435
445054
447416
453178
458688
459640
460138
461025
461548
466003
466269
466561
466727
466997
467483
471451
472774
474148
476621
484324
484654
484725
485692
491239
502270
503828
504191
506749
509030
510710
514774
516671
517316
520140
522218
528621
536655
539224
546608
552837
559569
601811
601918
663730
705788
737079
747966
789551
789623
806181
808018
]
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 (6965 , 326300 , 383089 , 390729 , 392967 , 406901 , 411986 , 413563 , 419051 , 429116 , 437436 , 441800 , 443791 , 444435 , 445054 , 447416 , 453178 , 458688 , 459640 , 460138 , 461025 , 461548 , 466003 , 466269 , 466561 , 466727 , 466997 , 467483 , 471451 , 472774 , 474148 , 476621 , 484324 , 484654 , 484725 , 485692 , 491239 , 502270 , 503828 , 504191 , 506749 , 509030 , 510710 , 514774 , 516671 , 517316 , 520140 , 522218 , 528621 , 536655 , 539224 , 546608 , 552837 , 559569 , 601811 , 601918 , 663730 , 705788 , 737079 , 747966 , 789551 , 789623 , 806181 , 808018 );
Copy
5
80.36 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
6965
326300
383089
390729
392967
406901
411986
413563
419051
429116
437436
441800
443791
444435
445054
447416
453178
458688
459640
460138
461025
461548
466003
466269
466561
466727
466997
467483
471451
472774
474148
476621
484324
484654
484725
485692
491239
502270
503828
504191
506749
509030
510710
514774
516671
517316
520140
522218
528621
536655
539224
546608
552837
559569
601811
601918
663730
705788
737079
747966
789551
789623
806181
808018
]
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 (6965 , 326300 , 383089 , 390729 , 392967 , 406901 , 411986 , 413563 , 419051 , 429116 , 437436 , 441800 , 443791 , 444435 , 445054 , 447416 , 453178 , 458688 , 459640 , 460138 , 461025 , 461548 , 466003 , 466269 , 466561 , 466727 , 466997 , 467483 , 471451 , 472774 , 474148 , 476621 , 484324 , 484654 , 484725 , 485692 , 491239 , 502270 , 503828 , 504191 , 506749 , 509030 , 510710 , 514774 , 516671 , 517316 , 520140 , 522218 , 528621 , 536655 , 539224 , 546608 , 552837 , 559569 , 601811 , 601918 , 663730 , 705788 , 737079 , 747966 , 789551 , 789623 , 806181 , 808018 );
Copy