3
13.63 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
411789
432157
394346
430084
447690
456254
727572
447667
684319
392459
555896
615593
736628
471142
790875
516828
757157
443981
461726
503137
531436
488751
688586
548642
821081
821080
820880
815826
478569
478660
524207
525107
396162
406002
443485
462402
478474
447675
443333
471632
400161
814810
465645
417690
456256
468587
461737
456249
447697
410231
463078
451708
460322
457145
404773
425633
469518
465613
468603
468608
429808
491458
520740
463082
568537
425715
513050
462450
]
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 (411789 , 432157 , 394346 , 430084 , 447690 , 456254 , 727572 , 447667 , 684319 , 392459 , 555896 , 615593 , 736628 , 471142 , 790875 , 516828 , 757157 , 443981 , 461726 , 503137 , 531436 , 488751 , 688586 , 548642 , 821081 , 821080 , 820880 , 815826 , 478569 , 478660 , 524207 , 525107 , 396162 , 406002 , 443485 , 462402 , 478474 , 447675 , 443333 , 471632 , 400161 , 814810 , 465645 , 417690 , 456256 , 468587 , 461737 , 456249 , 447697 , 410231 , 463078 , 451708 , 460322 , 457145 , 404773 , 425633 , 469518 , 465613 , 468603 , 468608 , 429808 , 491458 , 520740 , 463082 , 568537 , 425715 , 513050 , 462450 );
Copy
4
2.80 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
392459
394346
396162
400161
404773
406002
410231
411789
417690
425633
425715
429808
430084
432157
443333
443485
443981
447667
447675
447690
447697
451708
456249
456254
456256
457145
460322
461726
461737
462402
462450
463078
463082
465613
465645
468587
468603
468608
469518
471142
471632
478474
478569
478660
488751
491458
503137
513050
516828
520740
524207
525107
531436
548642
555896
568537
615593
684319
688586
727572
736628
757157
790875
814810
815826
820880
821080
821081
]
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 (392459 , 394346 , 396162 , 400161 , 404773 , 406002 , 410231 , 411789 , 417690 , 425633 , 425715 , 429808 , 430084 , 432157 , 443333 , 443485 , 443981 , 447667 , 447675 , 447690 , 447697 , 451708 , 456249 , 456254 , 456256 , 457145 , 460322 , 461726 , 461737 , 462402 , 462450 , 463078 , 463082 , 465613 , 465645 , 468587 , 468603 , 468608 , 469518 , 471142 , 471632 , 478474 , 478569 , 478660 , 488751 , 491458 , 503137 , 513050 , 516828 , 520740 , 524207 , 525107 , 531436 , 548642 , 555896 , 568537 , 615593 , 684319 , 688586 , 727572 , 736628 , 757157 , 790875 , 814810 , 815826 , 820880 , 821080 , 821081 );
Copy
5
101.00 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
392459
394346
396162
400161
404773
406002
410231
411789
417690
425633
425715
429808
430084
432157
443333
443485
443981
447667
447675
447690
447697
451708
456249
456254
456256
457145
460322
461726
461737
462402
462450
463078
463082
465613
465645
468587
468603
468608
469518
471142
471632
478474
478569
478660
488751
491458
503137
513050
516828
520740
524207
525107
531436
548642
555896
568537
615593
684319
688586
727572
736628
757157
790875
814810
815826
820880
821080
821081
]
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 (392459 , 394346 , 396162 , 400161 , 404773 , 406002 , 410231 , 411789 , 417690 , 425633 , 425715 , 429808 , 430084 , 432157 , 443333 , 443485 , 443981 , 447667 , 447675 , 447690 , 447697 , 451708 , 456249 , 456254 , 456256 , 457145 , 460322 , 461726 , 461737 , 462402 , 462450 , 463078 , 463082 , 465613 , 465645 , 468587 , 468603 , 468608 , 469518 , 471142 , 471632 , 478474 , 478569 , 478660 , 488751 , 491458 , 503137 , 513050 , 516828 , 520740 , 524207 , 525107 , 531436 , 548642 , 555896 , 568537 , 615593 , 684319 , 688586 , 727572 , 736628 , 757157 , 790875 , 814810 , 815826 , 820880 , 821080 , 821081 );
Copy