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