3
15.93 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
534346
529032
574424
549521
549367
545498
584192
644198
622856
598125
475678
454669
418567
488233
521997
523733
445778
457643
499587
531154
460446
475660
549999
456896
463619
558175
822046
454706
529975
538936
475676
584481
544347
552779
716167
562372
570952
590946
455392
438916
457782
420008
588345
555967
535616
492533
505365
490608
457735
625677
768663
529341
552278
583668
497495
532604
624834
487648
526246
499594
623817
457783
459171
578257
550031
573212
620263
]
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 (534346 , 529032 , 574424 , 549521 , 549367 , 545498 , 584192 , 644198 , 622856 , 598125 , 475678 , 454669 , 418567 , 488233 , 521997 , 523733 , 445778 , 457643 , 499587 , 531154 , 460446 , 475660 , 549999 , 456896 , 463619 , 558175 , 822046 , 454706 , 529975 , 538936 , 475676 , 584481 , 544347 , 552779 , 716167 , 562372 , 570952 , 590946 , 455392 , 438916 , 457782 , 420008 , 588345 , 555967 , 535616 , 492533 , 505365 , 490608 , 457735 , 625677 , 768663 , 529341 , 552278 , 583668 , 497495 , 532604 , 624834 , 487648 , 526246 , 499594 , 623817 , 457783 , 459171 , 578257 , 550031 , 573212 , 620263 );
Copy
4
2.97 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
418567
420008
438916
445778
454669
454706
455392
456896
457643
457735
457782
457783
459171
460446
463619
475660
475676
475678
487648
488233
490608
492533
497495
499587
499594
505365
521997
523733
526246
529032
529341
529975
531154
532604
534346
535616
538936
544347
545498
549367
549521
549999
550031
552278
552779
555967
558175
562372
570952
573212
574424
578257
583668
584192
584481
588345
590946
598125
620263
622856
623817
624834
625677
644198
716167
768663
822046
]
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 (418567 , 420008 , 438916 , 445778 , 454669 , 454706 , 455392 , 456896 , 457643 , 457735 , 457782 , 457783 , 459171 , 460446 , 463619 , 475660 , 475676 , 475678 , 487648 , 488233 , 490608 , 492533 , 497495 , 499587 , 499594 , 505365 , 521997 , 523733 , 526246 , 529032 , 529341 , 529975 , 531154 , 532604 , 534346 , 535616 , 538936 , 544347 , 545498 , 549367 , 549521 , 549999 , 550031 , 552278 , 552779 , 555967 , 558175 , 562372 , 570952 , 573212 , 574424 , 578257 , 583668 , 584192 , 584481 , 588345 , 590946 , 598125 , 620263 , 622856 , 623817 , 624834 , 625677 , 644198 , 716167 , 768663 , 822046 );
Copy
5
95.40 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
418567
420008
438916
445778
454669
454706
455392
456896
457643
457735
457782
457783
459171
460446
463619
475660
475676
475678
487648
488233
490608
492533
497495
499587
499594
505365
521997
523733
526246
529032
529341
529975
531154
532604
534346
535616
538936
544347
545498
549367
549521
549999
550031
552278
552779
555967
558175
562372
570952
573212
574424
578257
583668
584192
584481
588345
590946
598125
620263
622856
623817
624834
625677
644198
716167
768663
822046
]
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 (418567 , 420008 , 438916 , 445778 , 454669 , 454706 , 455392 , 456896 , 457643 , 457735 , 457782 , 457783 , 459171 , 460446 , 463619 , 475660 , 475676 , 475678 , 487648 , 488233 , 490608 , 492533 , 497495 , 499587 , 499594 , 505365 , 521997 , 523733 , 526246 , 529032 , 529341 , 529975 , 531154 , 532604 , 534346 , 535616 , 538936 , 544347 , 545498 , 549367 , 549521 , 549999 , 550031 , 552278 , 552779 , 555967 , 558175 , 562372 , 570952 , 573212 , 574424 , 578257 , 583668 , 584192 , 584481 , 588345 , 590946 , 598125 , 620263 , 622856 , 623817 , 624834 , 625677 , 644198 , 716167 , 768663 , 822046 );
Copy