3
13.80 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
436765
823480
452754
449545
496750
529455
647590
592203
602072
812697
812842
626280
779938
463400
419303
480697
459942
507440
571277
602575
768188
446510
463053
519536
431893
461034
463471
450715
454452
449466
467970
508226
572266
642162
594219
595244
796248
449998
461193
419096
427843
469780
498550
483786
497748
722931
420462
566205
457901
450013
465708
507287
505526
522782
537814
496747
516537
517337
525301
449688
510975
581232
512613
527382
525332
525398
607518
476634
459077
572328
605762
567757
441697
]
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 (436765 , 823480 , 452754 , 449545 , 496750 , 529455 , 647590 , 592203 , 602072 , 812697 , 812842 , 626280 , 779938 , 463400 , 419303 , 480697 , 459942 , 507440 , 571277 , 602575 , 768188 , 446510 , 463053 , 519536 , 431893 , 461034 , 463471 , 450715 , 454452 , 449466 , 467970 , 508226 , 572266 , 642162 , 594219 , 595244 , 796248 , 449998 , 461193 , 419096 , 427843 , 469780 , 498550 , 483786 , 497748 , 722931 , 420462 , 566205 , 457901 , 450013 , 465708 , 507287 , 505526 , 522782 , 537814 , 496747 , 516537 , 517337 , 525301 , 449688 , 510975 , 581232 , 512613 , 527382 , 525332 , 525398 , 607518 , 476634 , 459077 , 572328 , 605762 , 567757 , 441697 );
Copy
4
2.58 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
419096
419303
420462
427843
431893
436765
441697
446510
449466
449545
449688
449998
450013
450715
452754
454452
457901
459077
459942
461034
461193
463053
463400
463471
465708
467970
469780
476634
480697
483786
496747
496750
497748
498550
505526
507287
507440
508226
510975
512613
516537
517337
519536
522782
525301
525332
525398
527382
529455
537814
566205
567757
571277
572266
572328
581232
592203
594219
595244
602072
602575
605762
607518
626280
642162
647590
722931
768188
779938
796248
812697
812842
823480
]
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 (419096 , 419303 , 420462 , 427843 , 431893 , 436765 , 441697 , 446510 , 449466 , 449545 , 449688 , 449998 , 450013 , 450715 , 452754 , 454452 , 457901 , 459077 , 459942 , 461034 , 461193 , 463053 , 463400 , 463471 , 465708 , 467970 , 469780 , 476634 , 480697 , 483786 , 496747 , 496750 , 497748 , 498550 , 505526 , 507287 , 507440 , 508226 , 510975 , 512613 , 516537 , 517337 , 519536 , 522782 , 525301 , 525332 , 525398 , 527382 , 529455 , 537814 , 566205 , 567757 , 571277 , 572266 , 572328 , 581232 , 592203 , 594219 , 595244 , 602072 , 602575 , 605762 , 607518 , 626280 , 642162 , 647590 , 722931 , 768188 , 779938 , 796248 , 812697 , 812842 , 823480 );
Copy
5
71.87 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
419096
419303
420462
427843
431893
436765
441697
446510
449466
449545
449688
449998
450013
450715
452754
454452
457901
459077
459942
461034
461193
463053
463400
463471
465708
467970
469780
476634
480697
483786
496747
496750
497748
498550
505526
507287
507440
508226
510975
512613
516537
517337
519536
522782
525301
525332
525398
527382
529455
537814
566205
567757
571277
572266
572328
581232
592203
594219
595244
602072
602575
605762
607518
626280
642162
647590
722931
768188
779938
796248
812697
812842
823480
]
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 (419096 , 419303 , 420462 , 427843 , 431893 , 436765 , 441697 , 446510 , 449466 , 449545 , 449688 , 449998 , 450013 , 450715 , 452754 , 454452 , 457901 , 459077 , 459942 , 461034 , 461193 , 463053 , 463400 , 463471 , 465708 , 467970 , 469780 , 476634 , 480697 , 483786 , 496747 , 496750 , 497748 , 498550 , 505526 , 507287 , 507440 , 508226 , 510975 , 512613 , 516537 , 517337 , 519536 , 522782 , 525301 , 525332 , 525398 , 527382 , 529455 , 537814 , 566205 , 567757 , 571277 , 572266 , 572328 , 581232 , 592203 , 594219 , 595244 , 602072 , 602575 , 605762 , 607518 , 626280 , 642162 , 647590 , 722931 , 768188 , 779938 , 796248 , 812697 , 812842 , 823480 );
Copy