3
14.20 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
708919
721769
711907
800590
509228
588272
606496
556773
703540
818169
448867
511392
694032
544746
820523
636545
582972
721417
405468
541781
810606
447466
615812
501173
705520
507675
633468
568423
716394
620130
429814
807191
486589
421654
541252
728169
616336
506813
619569
568480
457789
431730
23104
541885
541751
515185
482534
488571
541667
541587
541638
552066
650380
423329
477210
515187
515206
687243
490261
522662
541721
476106
542195
541643
543376
601094
512447
541646
509552
]
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 (708919 , 721769 , 711907 , 800590 , 509228 , 588272 , 606496 , 556773 , 703540 , 818169 , 448867 , 511392 , 694032 , 544746 , 820523 , 636545 , 582972 , 721417 , 405468 , 541781 , 810606 , 447466 , 615812 , 501173 , 705520 , 507675 , 633468 , 568423 , 716394 , 620130 , 429814 , 807191 , 486589 , 421654 , 541252 , 728169 , 616336 , 506813 , 619569 , 568480 , 457789 , 431730 , 23104 , 541885 , 541751 , 515185 , 482534 , 488571 , 541667 , 541587 , 541638 , 552066 , 650380 , 423329 , 477210 , 515187 , 515206 , 687243 , 490261 , 522662 , 541721 , 476106 , 542195 , 541643 , 543376 , 601094 , 512447 , 541646 , 509552 );
Copy
4
2.44 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
23104
405468
421654
423329
429814
431730
447466
448867
457789
476106
477210
482534
486589
488571
490261
501173
506813
507675
509228
509552
511392
512447
515185
515187
515206
522662
541252
541587
541638
541643
541646
541667
541721
541751
541781
541885
542195
543376
544746
552066
556773
568423
568480
582972
588272
601094
606496
615812
616336
619569
620130
633468
636545
650380
687243
694032
703540
705520
708919
711907
716394
721417
721769
728169
800590
807191
810606
818169
820523
]
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 (23104 , 405468 , 421654 , 423329 , 429814 , 431730 , 447466 , 448867 , 457789 , 476106 , 477210 , 482534 , 486589 , 488571 , 490261 , 501173 , 506813 , 507675 , 509228 , 509552 , 511392 , 512447 , 515185 , 515187 , 515206 , 522662 , 541252 , 541587 , 541638 , 541643 , 541646 , 541667 , 541721 , 541751 , 541781 , 541885 , 542195 , 543376 , 544746 , 552066 , 556773 , 568423 , 568480 , 582972 , 588272 , 601094 , 606496 , 615812 , 616336 , 619569 , 620130 , 633468 , 636545 , 650380 , 687243 , 694032 , 703540 , 705520 , 708919 , 711907 , 716394 , 721417 , 721769 , 728169 , 800590 , 807191 , 810606 , 818169 , 820523 );
Copy
5
120.55 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
23104
405468
421654
423329
429814
431730
447466
448867
457789
476106
477210
482534
486589
488571
490261
501173
506813
507675
509228
509552
511392
512447
515185
515187
515206
522662
541252
541587
541638
541643
541646
541667
541721
541751
541781
541885
542195
543376
544746
552066
556773
568423
568480
582972
588272
601094
606496
615812
616336
619569
620130
633468
636545
650380
687243
694032
703540
705520
708919
711907
716394
721417
721769
728169
800590
807191
810606
818169
820523
]
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 (23104 , 405468 , 421654 , 423329 , 429814 , 431730 , 447466 , 448867 , 457789 , 476106 , 477210 , 482534 , 486589 , 488571 , 490261 , 501173 , 506813 , 507675 , 509228 , 509552 , 511392 , 512447 , 515185 , 515187 , 515206 , 522662 , 541252 , 541587 , 541638 , 541643 , 541646 , 541667 , 541721 , 541751 , 541781 , 541885 , 542195 , 543376 , 544746 , 552066 , 556773 , 568423 , 568480 , 582972 , 588272 , 601094 , 606496 , 615812 , 616336 , 619569 , 620130 , 633468 , 636545 , 650380 , 687243 , 694032 , 703540 , 705520 , 708919 , 711907 , 716394 , 721417 , 721769 , 728169 , 800590 , 807191 , 810606 , 818169 , 820523 );
Copy