3
12.79 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
561744
406578
615851
618523
699621
462268
556466
779003
627846
511305
523684
454748
580344
500180
653383
447523
581013
786178
489224
487694
561739
517702
556862
495903
518757
494044
446028
560257
578834
615689
518296
466713
707689
777416
437597
578463
454261
587939
538251
556684
599531
506623
520176
809290
477656
565499
560509
616382
621504
614056
518430
619692
599188
523405
509341
492364
478459
573335
574136
563006
594838
563884
602841
671893
602017
535016
599600
621465
601329
599532
625185
576310
541631
465234
]
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 (561744 , 406578 , 615851 , 618523 , 699621 , 462268 , 556466 , 779003 , 627846 , 511305 , 523684 , 454748 , 580344 , 500180 , 653383 , 447523 , 581013 , 786178 , 489224 , 487694 , 561739 , 517702 , 556862 , 495903 , 518757 , 494044 , 446028 , 560257 , 578834 , 615689 , 518296 , 466713 , 707689 , 777416 , 437597 , 578463 , 454261 , 587939 , 538251 , 556684 , 599531 , 506623 , 520176 , 809290 , 477656 , 565499 , 560509 , 616382 , 621504 , 614056 , 518430 , 619692 , 599188 , 523405 , 509341 , 492364 , 478459 , 573335 , 574136 , 563006 , 594838 , 563884 , 602841 , 671893 , 602017 , 535016 , 599600 , 621465 , 601329 , 599532 , 625185 , 576310 , 541631 , 465234 );
Copy
4
2.38 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
406578
437597
446028
447523
454261
454748
462268
465234
466713
477656
478459
487694
489224
492364
494044
495903
500180
506623
509341
511305
517702
518296
518430
518757
520176
523405
523684
535016
538251
541631
556466
556684
556862
560257
560509
561739
561744
563006
563884
565499
573335
574136
576310
578463
578834
580344
581013
587939
594838
599188
599531
599532
599600
601329
602017
602841
614056
615689
615851
616382
618523
619692
621465
621504
625185
627846
653383
671893
699621
707689
777416
779003
786178
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 (406578 , 437597 , 446028 , 447523 , 454261 , 454748 , 462268 , 465234 , 466713 , 477656 , 478459 , 487694 , 489224 , 492364 , 494044 , 495903 , 500180 , 506623 , 509341 , 511305 , 517702 , 518296 , 518430 , 518757 , 520176 , 523405 , 523684 , 535016 , 538251 , 541631 , 556466 , 556684 , 556862 , 560257 , 560509 , 561739 , 561744 , 563006 , 563884 , 565499 , 573335 , 574136 , 576310 , 578463 , 578834 , 580344 , 581013 , 587939 , 594838 , 599188 , 599531 , 599532 , 599600 , 601329 , 602017 , 602841 , 614056 , 615689 , 615851 , 616382 , 618523 , 619692 , 621465 , 621504 , 625185 , 627846 , 653383 , 671893 , 699621 , 707689 , 777416 , 779003 , 786178 , 809290 );
Copy
5
156.45 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
406578
437597
446028
447523
454261
454748
462268
465234
466713
477656
478459
487694
489224
492364
494044
495903
500180
506623
509341
511305
517702
518296
518430
518757
520176
523405
523684
535016
538251
541631
556466
556684
556862
560257
560509
561739
561744
563006
563884
565499
573335
574136
576310
578463
578834
580344
581013
587939
594838
599188
599531
599532
599600
601329
602017
602841
614056
615689
615851
616382
618523
619692
621465
621504
625185
627846
653383
671893
699621
707689
777416
779003
786178
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 (406578 , 437597 , 446028 , 447523 , 454261 , 454748 , 462268 , 465234 , 466713 , 477656 , 478459 , 487694 , 489224 , 492364 , 494044 , 495903 , 500180 , 506623 , 509341 , 511305 , 517702 , 518296 , 518430 , 518757 , 520176 , 523405 , 523684 , 535016 , 538251 , 541631 , 556466 , 556684 , 556862 , 560257 , 560509 , 561739 , 561744 , 563006 , 563884 , 565499 , 573335 , 574136 , 576310 , 578463 , 578834 , 580344 , 581013 , 587939 , 594838 , 599188 , 599531 , 599532 , 599600 , 601329 , 602017 , 602841 , 614056 , 615689 , 615851 , 616382 , 618523 , 619692 , 621465 , 621504 , 625185 , 627846 , 653383 , 671893 , 699621 , 707689 , 777416 , 779003 , 786178 , 809290 );
Copy