3
9.82 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
515303
521577
546868
516976
478459
521718
537170
521290
547433
567617
615599
520469
545881
557133
620254
522936
652876
485217
478416
511112
515108
496347
530247
559327
563523
667692
682573
590421
660747
462565
579807
580299
665415
665187
622034
603591
517887
496902
514838
482359
566413
582317
663895
586424
475895
481957
528149
461060
577215
557161
587904
620268
587516
489240
504059
516661
551532
557124
597227
533802
480745
581301
480749
507494
522976
650851
487911
]
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 (515303 , 521577 , 546868 , 516976 , 478459 , 521718 , 537170 , 521290 , 547433 , 567617 , 615599 , 520469 , 545881 , 557133 , 620254 , 522936 , 652876 , 485217 , 478416 , 511112 , 515108 , 496347 , 530247 , 559327 , 563523 , 667692 , 682573 , 590421 , 660747 , 462565 , 579807 , 580299 , 665415 , 665187 , 622034 , 603591 , 517887 , 496902 , 514838 , 482359 , 566413 , 582317 , 663895 , 586424 , 475895 , 481957 , 528149 , 461060 , 577215 , 557161 , 587904 , 620268 , 587516 , 489240 , 504059 , 516661 , 551532 , 557124 , 597227 , 533802 , 480745 , 581301 , 480749 , 507494 , 522976 , 650851 , 487911 );
Copy
4
2.14 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
461060
462565
475895
478416
478459
480745
480749
481957
482359
485217
487911
489240
496347
496902
504059
507494
511112
514838
515108
515303
516661
516976
517887
520469
521290
521577
521718
522936
522976
528149
530247
533802
537170
545881
546868
547433
551532
557124
557133
557161
559327
563523
566413
567617
577215
579807
580299
581301
582317
586424
587516
587904
590421
597227
603591
615599
620254
620268
622034
650851
652876
660747
663895
665187
665415
667692
682573
]
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 (461060 , 462565 , 475895 , 478416 , 478459 , 480745 , 480749 , 481957 , 482359 , 485217 , 487911 , 489240 , 496347 , 496902 , 504059 , 507494 , 511112 , 514838 , 515108 , 515303 , 516661 , 516976 , 517887 , 520469 , 521290 , 521577 , 521718 , 522936 , 522976 , 528149 , 530247 , 533802 , 537170 , 545881 , 546868 , 547433 , 551532 , 557124 , 557133 , 557161 , 559327 , 563523 , 566413 , 567617 , 577215 , 579807 , 580299 , 581301 , 582317 , 586424 , 587516 , 587904 , 590421 , 597227 , 603591 , 615599 , 620254 , 620268 , 622034 , 650851 , 652876 , 660747 , 663895 , 665187 , 665415 , 667692 , 682573 );
Copy
5
117.98 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
461060
462565
475895
478416
478459
480745
480749
481957
482359
485217
487911
489240
496347
496902
504059
507494
511112
514838
515108
515303
516661
516976
517887
520469
521290
521577
521718
522936
522976
528149
530247
533802
537170
545881
546868
547433
551532
557124
557133
557161
559327
563523
566413
567617
577215
579807
580299
581301
582317
586424
587516
587904
590421
597227
603591
615599
620254
620268
622034
650851
652876
660747
663895
665187
665415
667692
682573
]
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 (461060 , 462565 , 475895 , 478416 , 478459 , 480745 , 480749 , 481957 , 482359 , 485217 , 487911 , 489240 , 496347 , 496902 , 504059 , 507494 , 511112 , 514838 , 515108 , 515303 , 516661 , 516976 , 517887 , 520469 , 521290 , 521577 , 521718 , 522936 , 522976 , 528149 , 530247 , 533802 , 537170 , 545881 , 546868 , 547433 , 551532 , 557124 , 557133 , 557161 , 559327 , 563523 , 566413 , 567617 , 577215 , 579807 , 580299 , 581301 , 582317 , 586424 , 587516 , 587904 , 590421 , 597227 , 603591 , 615599 , 620254 , 620268 , 622034 , 650851 , 652876 , 660747 , 663895 , 665187 , 665415 , 667692 , 682573 );
Copy