3
14.60 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
420174
455083
578724
722548
780642
750148
432824
445413
467152
455015
495467
510798
496339
510801
516073
555023
656925
639809
514016
536403
650180
651674
666894
449023
497474
556882
555024
669362
752973
755756
761429
456236
416683
450599
582547
686615
477021
497689
532854
515051
483739
685701
536459
536466
510815
512928
666863
666892
600171
628402
639783
599847
632571
443218
598890
749924
515538
644986
713176
639732
473203
445396
451492
428276
559062
639741
640538
441644
564007
642706
610694
715595
718782
543848
610577
647893
]
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 (420174 , 455083 , 578724 , 722548 , 780642 , 750148 , 432824 , 445413 , 467152 , 455015 , 495467 , 510798 , 496339 , 510801 , 516073 , 555023 , 656925 , 639809 , 514016 , 536403 , 650180 , 651674 , 666894 , 449023 , 497474 , 556882 , 555024 , 669362 , 752973 , 755756 , 761429 , 456236 , 416683 , 450599 , 582547 , 686615 , 477021 , 497689 , 532854 , 515051 , 483739 , 685701 , 536459 , 536466 , 510815 , 512928 , 666863 , 666892 , 600171 , 628402 , 639783 , 599847 , 632571 , 443218 , 598890 , 749924 , 515538 , 644986 , 713176 , 639732 , 473203 , 445396 , 451492 , 428276 , 559062 , 639741 , 640538 , 441644 , 564007 , 642706 , 610694 , 715595 , 718782 , 543848 , 610577 , 647893 );
Copy
4
2.54 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
416683
420174
428276
432824
441644
443218
445396
445413
449023
450599
451492
455015
455083
456236
467152
473203
477021
483739
495467
496339
497474
510798
510801
510815
512928
514016
515051
515538
516073
532854
536403
536459
536466
543848
555023
555024
556882
559062
564007
578724
582547
598890
599847
600171
610577
610694
628402
632571
639732
639741
639783
639809
640538
642706
644986
647893
650180
651674
656925
666863
666892
666894
669362
685701
686615
713176
715595
718782
722548
749924
750148
752973
755756
761429
780642
]
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 (416683 , 420174 , 428276 , 432824 , 441644 , 443218 , 445396 , 445413 , 449023 , 450599 , 451492 , 455015 , 455083 , 456236 , 467152 , 473203 , 477021 , 483739 , 495467 , 496339 , 497474 , 510798 , 510801 , 510815 , 512928 , 514016 , 515051 , 515538 , 516073 , 532854 , 536403 , 536459 , 536466 , 543848 , 555023 , 555024 , 556882 , 559062 , 564007 , 578724 , 582547 , 598890 , 599847 , 600171 , 610577 , 610694 , 628402 , 632571 , 639732 , 639741 , 639783 , 639809 , 640538 , 642706 , 644986 , 647893 , 650180 , 651674 , 656925 , 666863 , 666892 , 666894 , 669362 , 685701 , 686615 , 713176 , 715595 , 718782 , 722548 , 749924 , 750148 , 752973 , 755756 , 761429 , 780642 );
Copy
5
108.53 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
416683
420174
428276
432824
441644
443218
445396
445413
449023
450599
451492
455015
455083
456236
467152
473203
477021
483739
495467
496339
497474
510798
510801
510815
512928
514016
515051
515538
516073
532854
536403
536459
536466
543848
555023
555024
556882
559062
564007
578724
582547
598890
599847
600171
610577
610694
628402
632571
639732
639741
639783
639809
640538
642706
644986
647893
650180
651674
656925
666863
666892
666894
669362
685701
686615
713176
715595
718782
722548
749924
750148
752973
755756
761429
780642
]
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 (416683 , 420174 , 428276 , 432824 , 441644 , 443218 , 445396 , 445413 , 449023 , 450599 , 451492 , 455015 , 455083 , 456236 , 467152 , 473203 , 477021 , 483739 , 495467 , 496339 , 497474 , 510798 , 510801 , 510815 , 512928 , 514016 , 515051 , 515538 , 516073 , 532854 , 536403 , 536459 , 536466 , 543848 , 555023 , 555024 , 556882 , 559062 , 564007 , 578724 , 582547 , 598890 , 599847 , 600171 , 610577 , 610694 , 628402 , 632571 , 639732 , 639741 , 639783 , 639809 , 640538 , 642706 , 644986 , 647893 , 650180 , 651674 , 656925 , 666863 , 666892 , 666894 , 669362 , 685701 , 686615 , 713176 , 715595 , 718782 , 722548 , 749924 , 750148 , 752973 , 755756 , 761429 , 780642 );
Copy