3
17.45 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
725458
444594
468969
477453
498855
524251
560453
467859
493017
525358
804796
620116
483812
684893
752177
434550
518155
518151
481367
566619
591932
721967
435746
445204
508816
483867
487372
574667
588802
439710
758815
420493
522998
564267
657780
608775
491636
435290
528371
635890
496593
577670
514693
464702
450935
513405
540655
446713
450470
506148
631538
521508
591510
538528
670834
594560
714779
454536
559712
613318
459357
471620
516051
562789
573736
495483
515579
493163
]
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 (725458 , 444594 , 468969 , 477453 , 498855 , 524251 , 560453 , 467859 , 493017 , 525358 , 804796 , 620116 , 483812 , 684893 , 752177 , 434550 , 518155 , 518151 , 481367 , 566619 , 591932 , 721967 , 435746 , 445204 , 508816 , 483867 , 487372 , 574667 , 588802 , 439710 , 758815 , 420493 , 522998 , 564267 , 657780 , 608775 , 491636 , 435290 , 528371 , 635890 , 496593 , 577670 , 514693 , 464702 , 450935 , 513405 , 540655 , 446713 , 450470 , 506148 , 631538 , 521508 , 591510 , 538528 , 670834 , 594560 , 714779 , 454536 , 559712 , 613318 , 459357 , 471620 , 516051 , 562789 , 573736 , 495483 , 515579 , 493163 );
Copy
4
3.18 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
420493
434550
435290
435746
439710
444594
445204
446713
450470
450935
454536
459357
464702
467859
468969
471620
477453
481367
483812
483867
487372
491636
493017
493163
495483
496593
498855
506148
508816
513405
514693
515579
516051
518151
518155
521508
522998
524251
525358
528371
538528
540655
559712
560453
562789
564267
566619
573736
574667
577670
588802
591510
591932
594560
608775
613318
620116
631538
635890
657780
670834
684893
714779
721967
725458
752177
758815
804796
]
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 (420493 , 434550 , 435290 , 435746 , 439710 , 444594 , 445204 , 446713 , 450470 , 450935 , 454536 , 459357 , 464702 , 467859 , 468969 , 471620 , 477453 , 481367 , 483812 , 483867 , 487372 , 491636 , 493017 , 493163 , 495483 , 496593 , 498855 , 506148 , 508816 , 513405 , 514693 , 515579 , 516051 , 518151 , 518155 , 521508 , 522998 , 524251 , 525358 , 528371 , 538528 , 540655 , 559712 , 560453 , 562789 , 564267 , 566619 , 573736 , 574667 , 577670 , 588802 , 591510 , 591932 , 594560 , 608775 , 613318 , 620116 , 631538 , 635890 , 657780 , 670834 , 684893 , 714779 , 721967 , 725458 , 752177 , 758815 , 804796 );
Copy
5
101.56 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
420493
434550
435290
435746
439710
444594
445204
446713
450470
450935
454536
459357
464702
467859
468969
471620
477453
481367
483812
483867
487372
491636
493017
493163
495483
496593
498855
506148
508816
513405
514693
515579
516051
518151
518155
521508
522998
524251
525358
528371
538528
540655
559712
560453
562789
564267
566619
573736
574667
577670
588802
591510
591932
594560
608775
613318
620116
631538
635890
657780
670834
684893
714779
721967
725458
752177
758815
804796
]
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 (420493 , 434550 , 435290 , 435746 , 439710 , 444594 , 445204 , 446713 , 450470 , 450935 , 454536 , 459357 , 464702 , 467859 , 468969 , 471620 , 477453 , 481367 , 483812 , 483867 , 487372 , 491636 , 493017 , 493163 , 495483 , 496593 , 498855 , 506148 , 508816 , 513405 , 514693 , 515579 , 516051 , 518151 , 518155 , 521508 , 522998 , 524251 , 525358 , 528371 , 538528 , 540655 , 559712 , 560453 , 562789 , 564267 , 566619 , 573736 , 574667 , 577670 , 588802 , 591510 , 591932 , 594560 , 608775 , 613318 , 620116 , 631538 , 635890 , 657780 , 670834 , 684893 , 714779 , 721967 , 725458 , 752177 , 758815 , 804796 );
Copy