3
13.23 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
565178
570959
573056
699586
659460
556149
559332
568363
571926
573814
614144
623499
597864
621448
594007
801952
786815
437440
437751
451433
414138
470067
428972
429153
478076
489583
524736
488282
558244
476223
434319
540595
560019
653526
566459
606019
617026
642359
590813
464703
405700
443973
448519
508185
523644
648560
573920
419192
518917
518289
553648
696203
565914
439854
475508
497867
492535
492273
569830
556017
614058
600503
429805
570708
672710
660964
593975
525441
589086
513539
533426
598199
630536
632632
597240
]
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 (565178 , 570959 , 573056 , 699586 , 659460 , 556149 , 559332 , 568363 , 571926 , 573814 , 614144 , 623499 , 597864 , 621448 , 594007 , 801952 , 786815 , 437440 , 437751 , 451433 , 414138 , 470067 , 428972 , 429153 , 478076 , 489583 , 524736 , 488282 , 558244 , 476223 , 434319 , 540595 , 560019 , 653526 , 566459 , 606019 , 617026 , 642359 , 590813 , 464703 , 405700 , 443973 , 448519 , 508185 , 523644 , 648560 , 573920 , 419192 , 518917 , 518289 , 553648 , 696203 , 565914 , 439854 , 475508 , 497867 , 492535 , 492273 , 569830 , 556017 , 614058 , 600503 , 429805 , 570708 , 672710 , 660964 , 593975 , 525441 , 589086 , 513539 , 533426 , 598199 , 630536 , 632632 , 597240 );
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
405700
414138
419192
428972
429153
429805
434319
437440
437751
439854
443973
448519
451433
464703
470067
475508
476223
478076
488282
489583
492273
492535
497867
508185
513539
518289
518917
523644
524736
525441
533426
540595
553648
556017
556149
558244
559332
560019
565178
565914
566459
568363
569830
570708
570959
571926
573056
573814
573920
589086
590813
593975
594007
597240
597864
598199
600503
606019
614058
614144
617026
621448
623499
630536
632632
642359
648560
653526
659460
660964
672710
696203
699586
786815
801952
]
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 (405700 , 414138 , 419192 , 428972 , 429153 , 429805 , 434319 , 437440 , 437751 , 439854 , 443973 , 448519 , 451433 , 464703 , 470067 , 475508 , 476223 , 478076 , 488282 , 489583 , 492273 , 492535 , 497867 , 508185 , 513539 , 518289 , 518917 , 523644 , 524736 , 525441 , 533426 , 540595 , 553648 , 556017 , 556149 , 558244 , 559332 , 560019 , 565178 , 565914 , 566459 , 568363 , 569830 , 570708 , 570959 , 571926 , 573056 , 573814 , 573920 , 589086 , 590813 , 593975 , 594007 , 597240 , 597864 , 598199 , 600503 , 606019 , 614058 , 614144 , 617026 , 621448 , 623499 , 630536 , 632632 , 642359 , 648560 , 653526 , 659460 , 660964 , 672710 , 696203 , 699586 , 786815 , 801952 );
Copy
5
117.25 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
405700
414138
419192
428972
429153
429805
434319
437440
437751
439854
443973
448519
451433
464703
470067
475508
476223
478076
488282
489583
492273
492535
497867
508185
513539
518289
518917
523644
524736
525441
533426
540595
553648
556017
556149
558244
559332
560019
565178
565914
566459
568363
569830
570708
570959
571926
573056
573814
573920
589086
590813
593975
594007
597240
597864
598199
600503
606019
614058
614144
617026
621448
623499
630536
632632
642359
648560
653526
659460
660964
672710
696203
699586
786815
801952
]
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 (405700 , 414138 , 419192 , 428972 , 429153 , 429805 , 434319 , 437440 , 437751 , 439854 , 443973 , 448519 , 451433 , 464703 , 470067 , 475508 , 476223 , 478076 , 488282 , 489583 , 492273 , 492535 , 497867 , 508185 , 513539 , 518289 , 518917 , 523644 , 524736 , 525441 , 533426 , 540595 , 553648 , 556017 , 556149 , 558244 , 559332 , 560019 , 565178 , 565914 , 566459 , 568363 , 569830 , 570708 , 570959 , 571926 , 573056 , 573814 , 573920 , 589086 , 590813 , 593975 , 594007 , 597240 , 597864 , 598199 , 600503 , 606019 , 614058 , 614144 , 617026 , 621448 , 623499 , 630536 , 632632 , 642359 , 648560 , 653526 , 659460 , 660964 , 672710 , 696203 , 699586 , 786815 , 801952 );
Copy