3
14.64 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
584351
567073
548757
585308
595016
602690
479694
510090
488408
514927
523873
506133
455749
455767
477223
618949
644915
484418
512693
465103
567504
566320
593529
603403
604865
420515
449356
500803
509042
518596
518879
528266
453343
493212
485209
807023
446437
620377
603193
429933
452923
508303
564643
602092
520720
504213
431080
569389
680147
590579
471115
614743
535015
465524
585889
504085
654534
471495
485591
530661
680159
531481
618424
656782
598168
573805
606799
]
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 (584351 , 567073 , 548757 , 585308 , 595016 , 602690 , 479694 , 510090 , 488408 , 514927 , 523873 , 506133 , 455749 , 455767 , 477223 , 618949 , 644915 , 484418 , 512693 , 465103 , 567504 , 566320 , 593529 , 603403 , 604865 , 420515 , 449356 , 500803 , 509042 , 518596 , 518879 , 528266 , 453343 , 493212 , 485209 , 807023 , 446437 , 620377 , 603193 , 429933 , 452923 , 508303 , 564643 , 602092 , 520720 , 504213 , 431080 , 569389 , 680147 , 590579 , 471115 , 614743 , 535015 , 465524 , 585889 , 504085 , 654534 , 471495 , 485591 , 530661 , 680159 , 531481 , 618424 , 656782 , 598168 , 573805 , 606799 );
Copy
4
2.16 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
420515
429933
431080
446437
449356
452923
453343
455749
455767
465103
465524
471115
471495
477223
479694
484418
485209
485591
488408
493212
500803
504085
504213
506133
508303
509042
510090
512693
514927
518596
518879
520720
523873
528266
530661
531481
535015
548757
564643
566320
567073
567504
569389
573805
584351
585308
585889
590579
593529
595016
598168
602092
602690
603193
603403
604865
606799
614743
618424
618949
620377
644915
654534
656782
680147
680159
807023
]
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 (420515 , 429933 , 431080 , 446437 , 449356 , 452923 , 453343 , 455749 , 455767 , 465103 , 465524 , 471115 , 471495 , 477223 , 479694 , 484418 , 485209 , 485591 , 488408 , 493212 , 500803 , 504085 , 504213 , 506133 , 508303 , 509042 , 510090 , 512693 , 514927 , 518596 , 518879 , 520720 , 523873 , 528266 , 530661 , 531481 , 535015 , 548757 , 564643 , 566320 , 567073 , 567504 , 569389 , 573805 , 584351 , 585308 , 585889 , 590579 , 593529 , 595016 , 598168 , 602092 , 602690 , 603193 , 603403 , 604865 , 606799 , 614743 , 618424 , 618949 , 620377 , 644915 , 654534 , 656782 , 680147 , 680159 , 807023 );
Copy
5
71.11 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
420515
429933
431080
446437
449356
452923
453343
455749
455767
465103
465524
471115
471495
477223
479694
484418
485209
485591
488408
493212
500803
504085
504213
506133
508303
509042
510090
512693
514927
518596
518879
520720
523873
528266
530661
531481
535015
548757
564643
566320
567073
567504
569389
573805
584351
585308
585889
590579
593529
595016
598168
602092
602690
603193
603403
604865
606799
614743
618424
618949
620377
644915
654534
656782
680147
680159
807023
]
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 (420515 , 429933 , 431080 , 446437 , 449356 , 452923 , 453343 , 455749 , 455767 , 465103 , 465524 , 471115 , 471495 , 477223 , 479694 , 484418 , 485209 , 485591 , 488408 , 493212 , 500803 , 504085 , 504213 , 506133 , 508303 , 509042 , 510090 , 512693 , 514927 , 518596 , 518879 , 520720 , 523873 , 528266 , 530661 , 531481 , 535015 , 548757 , 564643 , 566320 , 567073 , 567504 , 569389 , 573805 , 584351 , 585308 , 585889 , 590579 , 593529 , 595016 , 598168 , 602092 , 602690 , 603193 , 603403 , 604865 , 606799 , 614743 , 618424 , 618949 , 620377 , 644915 , 654534 , 656782 , 680147 , 680159 , 807023 );
Copy