4
13.43 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
782021
567117
529835
752516
515013
681403
769383
532007
653902
696248
707475
744901
769497
412880
488265
547215
434083
532503
556591
622791
637468
793298
538630
548220
541692
546290
695543
718882
737025
740053
727151
436372
498317
535474
650440
813809
528530
480359
584193
649507
576917
594254
784652
768344
790485
817234
814981
815718
453415
497683
559188
630469
788546
773562
444839
146317
498752
450250
450495
467410
616234
593277
488897
482815
506912
576805
522111
428987
526494
652756
]
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 (782021 , 567117 , 529835 , 752516 , 515013 , 681403 , 769383 , 532007 , 653902 , 696248 , 707475 , 744901 , 769497 , 412880 , 488265 , 547215 , 434083 , 532503 , 556591 , 622791 , 637468 , 793298 , 538630 , 548220 , 541692 , 546290 , 695543 , 718882 , 737025 , 740053 , 727151 , 436372 , 498317 , 535474 , 650440 , 813809 , 528530 , 480359 , 584193 , 649507 , 576917 , 594254 , 784652 , 768344 , 790485 , 817234 , 814981 , 815718 , 453415 , 497683 , 559188 , 630469 , 788546 , 773562 , 444839 , 146317 , 498752 , 450250 , 450495 , 467410 , 616234 , 593277 , 488897 , 482815 , 506912 , 576805 , 522111 , 428987 , 526494 , 652756 );
Copy
5
2.79 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
146317
412880
428987
434083
436372
444839
450250
450495
453415
467410
480359
482815
488265
488897
497683
498317
498752
506912
515013
522111
526494
528530
529835
532007
532503
535474
538630
541692
546290
547215
548220
556591
559188
567117
576805
576917
584193
593277
594254
616234
622791
630469
637468
649507
650440
652756
653902
681403
695543
696248
707475
718882
727151
737025
740053
744901
752516
768344
769383
769497
773562
782021
784652
788546
790485
793298
813809
814981
815718
817234
]
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 (146317 , 412880 , 428987 , 434083 , 436372 , 444839 , 450250 , 450495 , 453415 , 467410 , 480359 , 482815 , 488265 , 488897 , 497683 , 498317 , 498752 , 506912 , 515013 , 522111 , 526494 , 528530 , 529835 , 532007 , 532503 , 535474 , 538630 , 541692 , 546290 , 547215 , 548220 , 556591 , 559188 , 567117 , 576805 , 576917 , 584193 , 593277 , 594254 , 616234 , 622791 , 630469 , 637468 , 649507 , 650440 , 652756 , 653902 , 681403 , 695543 , 696248 , 707475 , 718882 , 727151 , 737025 , 740053 , 744901 , 752516 , 768344 , 769383 , 769497 , 773562 , 782021 , 784652 , 788546 , 790485 , 793298 , 813809 , 814981 , 815718 , 817234 );
Copy
6
77.26 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
146317
412880
428987
434083
436372
444839
450250
450495
453415
467410
480359
482815
488265
488897
497683
498317
498752
506912
515013
522111
526494
528530
529835
532007
532503
535474
538630
541692
546290
547215
548220
556591
559188
567117
576805
576917
584193
593277
594254
616234
622791
630469
637468
649507
650440
652756
653902
681403
695543
696248
707475
718882
727151
737025
740053
744901
752516
768344
769383
769497
773562
782021
784652
788546
790485
793298
813809
814981
815718
817234
]
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 (146317 , 412880 , 428987 , 434083 , 436372 , 444839 , 450250 , 450495 , 453415 , 467410 , 480359 , 482815 , 488265 , 488897 , 497683 , 498317 , 498752 , 506912 , 515013 , 522111 , 526494 , 528530 , 529835 , 532007 , 532503 , 535474 , 538630 , 541692 , 546290 , 547215 , 548220 , 556591 , 559188 , 567117 , 576805 , 576917 , 584193 , 593277 , 594254 , 616234 , 622791 , 630469 , 637468 , 649507 , 650440 , 652756 , 653902 , 681403 , 695543 , 696248 , 707475 , 718882 , 727151 , 737025 , 740053 , 744901 , 752516 , 768344 , 769383 , 769497 , 773562 , 782021 , 784652 , 788546 , 790485 , 793298 , 813809 , 814981 , 815718 , 817234 );
Copy