3
12.51 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
497187
388800
417707
526647
559014
633209
444972
459264
452229
455799
552326
475062
500901
509802
454669
526168
489023
410724
458991
497581
515179
538653
542525
568505
448375
516250
457611
396980
463705
635577
595877
510270
548849
598749
500482
511562
458437
482256
414204
511028
426547
454509
515167
435479
441631
544828
417473
418018
479637
541316
441640
539248
462644
533631
559069
513517
565095
515153
537268
498038
541712
455795
653463
541877
566502
598097
541638
580969
]
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 (497187 , 388800 , 417707 , 526647 , 559014 , 633209 , 444972 , 459264 , 452229 , 455799 , 552326 , 475062 , 500901 , 509802 , 454669 , 526168 , 489023 , 410724 , 458991 , 497581 , 515179 , 538653 , 542525 , 568505 , 448375 , 516250 , 457611 , 396980 , 463705 , 635577 , 595877 , 510270 , 548849 , 598749 , 500482 , 511562 , 458437 , 482256 , 414204 , 511028 , 426547 , 454509 , 515167 , 435479 , 441631 , 544828 , 417473 , 418018 , 479637 , 541316 , 441640 , 539248 , 462644 , 533631 , 559069 , 513517 , 565095 , 515153 , 537268 , 498038 , 541712 , 455795 , 653463 , 541877 , 566502 , 598097 , 541638 , 580969 );
Copy
4
2.55 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
388800
396980
410724
414204
417473
417707
418018
426547
435479
441631
441640
444972
448375
452229
454509
454669
455795
455799
457611
458437
458991
459264
462644
463705
475062
479637
482256
489023
497187
497581
498038
500482
500901
509802
510270
511028
511562
513517
515153
515167
515179
516250
526168
526647
533631
537268
538653
539248
541316
541638
541712
541877
542525
544828
548849
552326
559014
559069
565095
566502
568505
580969
595877
598097
598749
633209
635577
653463
]
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 (388800 , 396980 , 410724 , 414204 , 417473 , 417707 , 418018 , 426547 , 435479 , 441631 , 441640 , 444972 , 448375 , 452229 , 454509 , 454669 , 455795 , 455799 , 457611 , 458437 , 458991 , 459264 , 462644 , 463705 , 475062 , 479637 , 482256 , 489023 , 497187 , 497581 , 498038 , 500482 , 500901 , 509802 , 510270 , 511028 , 511562 , 513517 , 515153 , 515167 , 515179 , 516250 , 526168 , 526647 , 533631 , 537268 , 538653 , 539248 , 541316 , 541638 , 541712 , 541877 , 542525 , 544828 , 548849 , 552326 , 559014 , 559069 , 565095 , 566502 , 568505 , 580969 , 595877 , 598097 , 598749 , 633209 , 635577 , 653463 );
Copy
5
74.76 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
388800
396980
410724
414204
417473
417707
418018
426547
435479
441631
441640
444972
448375
452229
454509
454669
455795
455799
457611
458437
458991
459264
462644
463705
475062
479637
482256
489023
497187
497581
498038
500482
500901
509802
510270
511028
511562
513517
515153
515167
515179
516250
526168
526647
533631
537268
538653
539248
541316
541638
541712
541877
542525
544828
548849
552326
559014
559069
565095
566502
568505
580969
595877
598097
598749
633209
635577
653463
]
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 (388800 , 396980 , 410724 , 414204 , 417473 , 417707 , 418018 , 426547 , 435479 , 441631 , 441640 , 444972 , 448375 , 452229 , 454509 , 454669 , 455795 , 455799 , 457611 , 458437 , 458991 , 459264 , 462644 , 463705 , 475062 , 479637 , 482256 , 489023 , 497187 , 497581 , 498038 , 500482 , 500901 , 509802 , 510270 , 511028 , 511562 , 513517 , 515153 , 515167 , 515179 , 516250 , 526168 , 526647 , 533631 , 537268 , 538653 , 539248 , 541316 , 541638 , 541712 , 541877 , 542525 , 544828 , 548849 , 552326 , 559014 , 559069 , 565095 , 566502 , 568505 , 580969 , 595877 , 598097 , 598749 , 633209 , 635577 , 653463 );
Copy