3
10.86 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
590961
540207
583934
572730
475938
590934
391002
557815
166116
795539
770665
472669
539945
771936
812975
558368
551086
463739
817834
820780
630492
614529
598289
606554
583298
510590
697354
636923
771827
512212
623610
695948
593436
592750
509378
815194
810840
533337
559158
809223
400237
820767
554434
804462
623522
566002
622990
640534
812781
414126
609933
591882
646025
683237
729751
659025
544281
583851
582540
642063
632571
631019
794951
532751
609121
532812
583247
542189
]
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 (590961 , 540207 , 583934 , 572730 , 475938 , 590934 , 391002 , 557815 , 166116 , 795539 , 770665 , 472669 , 539945 , 771936 , 812975 , 558368 , 551086 , 463739 , 817834 , 820780 , 630492 , 614529 , 598289 , 606554 , 583298 , 510590 , 697354 , 636923 , 771827 , 512212 , 623610 , 695948 , 593436 , 592750 , 509378 , 815194 , 810840 , 533337 , 559158 , 809223 , 400237 , 820767 , 554434 , 804462 , 623522 , 566002 , 622990 , 640534 , 812781 , 414126 , 609933 , 591882 , 646025 , 683237 , 729751 , 659025 , 544281 , 583851 , 582540 , 642063 , 632571 , 631019 , 794951 , 532751 , 609121 , 532812 , 583247 , 542189 );
Copy
4
3.21 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
166116
391002
400237
414126
463739
472669
475938
509378
510590
512212
532751
532812
533337
539945
540207
542189
544281
551086
554434
557815
558368
559158
566002
572730
582540
583247
583298
583851
583934
590934
590961
591882
592750
593436
598289
606554
609121
609933
614529
622990
623522
623610
630492
631019
632571
636923
640534
642063
646025
659025
683237
695948
697354
729751
770665
771827
771936
794951
795539
804462
809223
810840
812781
812975
815194
817834
820767
820780
]
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 (166116 , 391002 , 400237 , 414126 , 463739 , 472669 , 475938 , 509378 , 510590 , 512212 , 532751 , 532812 , 533337 , 539945 , 540207 , 542189 , 544281 , 551086 , 554434 , 557815 , 558368 , 559158 , 566002 , 572730 , 582540 , 583247 , 583298 , 583851 , 583934 , 590934 , 590961 , 591882 , 592750 , 593436 , 598289 , 606554 , 609121 , 609933 , 614529 , 622990 , 623522 , 623610 , 630492 , 631019 , 632571 , 636923 , 640534 , 642063 , 646025 , 659025 , 683237 , 695948 , 697354 , 729751 , 770665 , 771827 , 771936 , 794951 , 795539 , 804462 , 809223 , 810840 , 812781 , 812975 , 815194 , 817834 , 820767 , 820780 );
Copy
5
81.75 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
166116
391002
400237
414126
463739
472669
475938
509378
510590
512212
532751
532812
533337
539945
540207
542189
544281
551086
554434
557815
558368
559158
566002
572730
582540
583247
583298
583851
583934
590934
590961
591882
592750
593436
598289
606554
609121
609933
614529
622990
623522
623610
630492
631019
632571
636923
640534
642063
646025
659025
683237
695948
697354
729751
770665
771827
771936
794951
795539
804462
809223
810840
812781
812975
815194
817834
820767
820780
]
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 (166116 , 391002 , 400237 , 414126 , 463739 , 472669 , 475938 , 509378 , 510590 , 512212 , 532751 , 532812 , 533337 , 539945 , 540207 , 542189 , 544281 , 551086 , 554434 , 557815 , 558368 , 559158 , 566002 , 572730 , 582540 , 583247 , 583298 , 583851 , 583934 , 590934 , 590961 , 591882 , 592750 , 593436 , 598289 , 606554 , 609121 , 609933 , 614529 , 622990 , 623522 , 623610 , 630492 , 631019 , 632571 , 636923 , 640534 , 642063 , 646025 , 659025 , 683237 , 695948 , 697354 , 729751 , 770665 , 771827 , 771936 , 794951 , 795539 , 804462 , 809223 , 810840 , 812781 , 812975 , 815194 , 817834 , 820767 , 820780 );
Copy