3
10.90 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
459264
456138
463456
463705
516250
486105
515179
509802
445778
478586
538653
542525
635577
448375
457289
476603
455016
497581
458991
457595
568505
488541
489023
541316
418018
500901
515167
441546
441631
511562
578378
549327
444972
458437
479637
410724
526168
598749
475062
510270
533631
537268
515153
500482
457611
595877
462644
417473
482256
539248
559069
565095
548849
511028
441640
566502
653463
435479
513517
541712
498038
598097
455795
541877
601944
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 (459264 , 456138 , 463456 , 463705 , 516250 , 486105 , 515179 , 509802 , 445778 , 478586 , 538653 , 542525 , 635577 , 448375 , 457289 , 476603 , 455016 , 497581 , 458991 , 457595 , 568505 , 488541 , 489023 , 541316 , 418018 , 500901 , 515167 , 441546 , 441631 , 511562 , 578378 , 549327 , 444972 , 458437 , 479637 , 410724 , 526168 , 598749 , 475062 , 510270 , 533631 , 537268 , 515153 , 500482 , 457611 , 595877 , 462644 , 417473 , 482256 , 539248 , 559069 , 565095 , 548849 , 511028 , 441640 , 566502 , 653463 , 435479 , 513517 , 541712 , 498038 , 598097 , 455795 , 541877 , 601944 , 541638 , 580969 );
Copy
4
2.14 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
410724
417473
418018
435479
441546
441631
441640
444972
445778
448375
455016
455795
456138
457289
457595
457611
458437
458991
459264
462644
463456
463705
475062
476603
478586
479637
482256
486105
488541
489023
497581
498038
500482
500901
509802
510270
511028
511562
513517
515153
515167
515179
516250
526168
533631
537268
538653
539248
541316
541638
541712
541877
542525
548849
549327
559069
565095
566502
568505
578378
580969
595877
598097
598749
601944
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 (410724 , 417473 , 418018 , 435479 , 441546 , 441631 , 441640 , 444972 , 445778 , 448375 , 455016 , 455795 , 456138 , 457289 , 457595 , 457611 , 458437 , 458991 , 459264 , 462644 , 463456 , 463705 , 475062 , 476603 , 478586 , 479637 , 482256 , 486105 , 488541 , 489023 , 497581 , 498038 , 500482 , 500901 , 509802 , 510270 , 511028 , 511562 , 513517 , 515153 , 515167 , 515179 , 516250 , 526168 , 533631 , 537268 , 538653 , 539248 , 541316 , 541638 , 541712 , 541877 , 542525 , 548849 , 549327 , 559069 , 565095 , 566502 , 568505 , 578378 , 580969 , 595877 , 598097 , 598749 , 601944 , 635577 , 653463 );
Copy
5
108.51 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
410724
417473
418018
435479
441546
441631
441640
444972
445778
448375
455016
455795
456138
457289
457595
457611
458437
458991
459264
462644
463456
463705
475062
476603
478586
479637
482256
486105
488541
489023
497581
498038
500482
500901
509802
510270
511028
511562
513517
515153
515167
515179
516250
526168
533631
537268
538653
539248
541316
541638
541712
541877
542525
548849
549327
559069
565095
566502
568505
578378
580969
595877
598097
598749
601944
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 (410724 , 417473 , 418018 , 435479 , 441546 , 441631 , 441640 , 444972 , 445778 , 448375 , 455016 , 455795 , 456138 , 457289 , 457595 , 457611 , 458437 , 458991 , 459264 , 462644 , 463456 , 463705 , 475062 , 476603 , 478586 , 479637 , 482256 , 486105 , 488541 , 489023 , 497581 , 498038 , 500482 , 500901 , 509802 , 510270 , 511028 , 511562 , 513517 , 515153 , 515167 , 515179 , 516250 , 526168 , 533631 , 537268 , 538653 , 539248 , 541316 , 541638 , 541712 , 541877 , 542525 , 548849 , 549327 , 559069 , 565095 , 566502 , 568505 , 578378 , 580969 , 595877 , 598097 , 598749 , 601944 , 635577 , 653463 );
Copy