3
8.70 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
710419
613848
652010
558019
446706
825882
576579
580512
775943
775940
817300
621229
805361
789750
765025
606740
817797
814922
485328
584347
515734
670891
709900
389643
411090
542433
567360
689606
613608
594534
634861
775004
767769
792904
474449
463699
485356
497298
574047
546116
541177
683301
791505
813249
413485
434277
449085
471625
385318
814916
822946
495253
560153
567074
769425
408157
502778
515678
539069
519013
556018
635988
584752
598601
595226
530384
573479
526373
]
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 (710419 , 613848 , 652010 , 558019 , 446706 , 825882 , 576579 , 580512 , 775943 , 775940 , 817300 , 621229 , 805361 , 789750 , 765025 , 606740 , 817797 , 814922 , 485328 , 584347 , 515734 , 670891 , 709900 , 389643 , 411090 , 542433 , 567360 , 689606 , 613608 , 594534 , 634861 , 775004 , 767769 , 792904 , 474449 , 463699 , 485356 , 497298 , 574047 , 546116 , 541177 , 683301 , 791505 , 813249 , 413485 , 434277 , 449085 , 471625 , 385318 , 814916 , 822946 , 495253 , 560153 , 567074 , 769425 , 408157 , 502778 , 515678 , 539069 , 519013 , 556018 , 635988 , 584752 , 598601 , 595226 , 530384 , 573479 , 526373 );
Copy
4
2.51 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
385318
389643
408157
411090
413485
434277
446706
449085
463699
471625
474449
485328
485356
495253
497298
502778
515678
515734
519013
526373
530384
539069
541177
542433
546116
556018
558019
560153
567074
567360
573479
574047
576579
580512
584347
584752
594534
595226
598601
606740
613608
613848
621229
634861
635988
652010
670891
683301
689606
709900
710419
765025
767769
769425
775004
775940
775943
789750
791505
792904
805361
813249
814916
814922
817300
817797
822946
825882
]
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 (385318 , 389643 , 408157 , 411090 , 413485 , 434277 , 446706 , 449085 , 463699 , 471625 , 474449 , 485328 , 485356 , 495253 , 497298 , 502778 , 515678 , 515734 , 519013 , 526373 , 530384 , 539069 , 541177 , 542433 , 546116 , 556018 , 558019 , 560153 , 567074 , 567360 , 573479 , 574047 , 576579 , 580512 , 584347 , 584752 , 594534 , 595226 , 598601 , 606740 , 613608 , 613848 , 621229 , 634861 , 635988 , 652010 , 670891 , 683301 , 689606 , 709900 , 710419 , 765025 , 767769 , 769425 , 775004 , 775940 , 775943 , 789750 , 791505 , 792904 , 805361 , 813249 , 814916 , 814922 , 817300 , 817797 , 822946 , 825882 );
Copy
5
79.30 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
385318
389643
408157
411090
413485
434277
446706
449085
463699
471625
474449
485328
485356
495253
497298
502778
515678
515734
519013
526373
530384
539069
541177
542433
546116
556018
558019
560153
567074
567360
573479
574047
576579
580512
584347
584752
594534
595226
598601
606740
613608
613848
621229
634861
635988
652010
670891
683301
689606
709900
710419
765025
767769
769425
775004
775940
775943
789750
791505
792904
805361
813249
814916
814922
817300
817797
822946
825882
]
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 (385318 , 389643 , 408157 , 411090 , 413485 , 434277 , 446706 , 449085 , 463699 , 471625 , 474449 , 485328 , 485356 , 495253 , 497298 , 502778 , 515678 , 515734 , 519013 , 526373 , 530384 , 539069 , 541177 , 542433 , 546116 , 556018 , 558019 , 560153 , 567074 , 567360 , 573479 , 574047 , 576579 , 580512 , 584347 , 584752 , 594534 , 595226 , 598601 , 606740 , 613608 , 613848 , 621229 , 634861 , 635988 , 652010 , 670891 , 683301 , 689606 , 709900 , 710419 , 765025 , 767769 , 769425 , 775004 , 775940 , 775943 , 789750 , 791505 , 792904 , 805361 , 813249 , 814916 , 814922 , 817300 , 817797 , 822946 , 825882 );
Copy