4
17.04 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
484596
514395
522192
653464
630596
467428
626042
561458
561704
659487
625322
513965
482499
559140
564716
625321
471586
525385
505446
513047
559453
570616
656789
625913
513626
520995
490606
548518
419628
566304
570212
584415
656768
632298
596623
618371
398877
568796
564981
660520
652869
654479
570612
643595
599694
487514
505891
527268
548340
560924
654518
655609
567743
578084
604776
588751
595448
601329
605111
601933
627679
485371
504610
624911
589048
502695
516308
493249
502328
418686
550599
624226
]
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 (484596 , 514395 , 522192 , 653464 , 630596 , 467428 , 626042 , 561458 , 561704 , 659487 , 625322 , 513965 , 482499 , 559140 , 564716 , 625321 , 471586 , 525385 , 505446 , 513047 , 559453 , 570616 , 656789 , 625913 , 513626 , 520995 , 490606 , 548518 , 419628 , 566304 , 570212 , 584415 , 656768 , 632298 , 596623 , 618371 , 398877 , 568796 , 564981 , 660520 , 652869 , 654479 , 570612 , 643595 , 599694 , 487514 , 505891 , 527268 , 548340 , 560924 , 654518 , 655609 , 567743 , 578084 , 604776 , 588751 , 595448 , 601329 , 605111 , 601933 , 627679 , 485371 , 504610 , 624911 , 589048 , 502695 , 516308 , 493249 , 502328 , 418686 , 550599 , 624226 );
Copy
5
3.23 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
398877
418686
419628
467428
471586
482499
484596
485371
487514
490606
493249
502328
502695
504610
505446
505891
513047
513626
513965
514395
516308
520995
522192
525385
527268
548340
548518
550599
559140
559453
560924
561458
561704
564716
564981
566304
567743
568796
570212
570612
570616
578084
584415
588751
589048
595448
596623
599694
601329
601933
604776
605111
618371
624226
624911
625321
625322
625913
626042
627679
630596
632298
643595
652869
653464
654479
654518
655609
656768
656789
659487
660520
]
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 (398877 , 418686 , 419628 , 467428 , 471586 , 482499 , 484596 , 485371 , 487514 , 490606 , 493249 , 502328 , 502695 , 504610 , 505446 , 505891 , 513047 , 513626 , 513965 , 514395 , 516308 , 520995 , 522192 , 525385 , 527268 , 548340 , 548518 , 550599 , 559140 , 559453 , 560924 , 561458 , 561704 , 564716 , 564981 , 566304 , 567743 , 568796 , 570212 , 570612 , 570616 , 578084 , 584415 , 588751 , 589048 , 595448 , 596623 , 599694 , 601329 , 601933 , 604776 , 605111 , 618371 , 624226 , 624911 , 625321 , 625322 , 625913 , 626042 , 627679 , 630596 , 632298 , 643595 , 652869 , 653464 , 654479 , 654518 , 655609 , 656768 , 656789 , 659487 , 660520 );
Copy
6
82.99 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
398877
418686
419628
467428
471586
482499
484596
485371
487514
490606
493249
502328
502695
504610
505446
505891
513047
513626
513965
514395
516308
520995
522192
525385
527268
548340
548518
550599
559140
559453
560924
561458
561704
564716
564981
566304
567743
568796
570212
570612
570616
578084
584415
588751
589048
595448
596623
599694
601329
601933
604776
605111
618371
624226
624911
625321
625322
625913
626042
627679
630596
632298
643595
652869
653464
654479
654518
655609
656768
656789
659487
660520
]
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 (398877 , 418686 , 419628 , 467428 , 471586 , 482499 , 484596 , 485371 , 487514 , 490606 , 493249 , 502328 , 502695 , 504610 , 505446 , 505891 , 513047 , 513626 , 513965 , 514395 , 516308 , 520995 , 522192 , 525385 , 527268 , 548340 , 548518 , 550599 , 559140 , 559453 , 560924 , 561458 , 561704 , 564716 , 564981 , 566304 , 567743 , 568796 , 570212 , 570612 , 570616 , 578084 , 584415 , 588751 , 589048 , 595448 , 596623 , 599694 , 601329 , 601933 , 604776 , 605111 , 618371 , 624226 , 624911 , 625321 , 625322 , 625913 , 626042 , 627679 , 630596 , 632298 , 643595 , 652869 , 653464 , 654479 , 654518 , 655609 , 656768 , 656789 , 659487 , 660520 );
Copy