3
12.22 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
773797
459432
423792
824611
416417
828393
663709
796228
771488
766265
823719
554707
586127
797329
772367
567888
488171
683404
689488
688386
784365
723993
486052
390305
499169
539553
563982
605902
503834
583232
560276
758992
632168
698230
776141
427019
458274
584621
471481
611324
820841
540019
670272
641539
794063
746171
458269
500908
609203
473351
456351
533213
553649
423840
485439
513360
605179
512615
435069
489868
382140
801143
576506
558654
451115
484086
537278
510873
517708
515604
624834
545623
639661
488152
558316
]
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 (773797 , 459432 , 423792 , 824611 , 416417 , 828393 , 663709 , 796228 , 771488 , 766265 , 823719 , 554707 , 586127 , 797329 , 772367 , 567888 , 488171 , 683404 , 689488 , 688386 , 784365 , 723993 , 486052 , 390305 , 499169 , 539553 , 563982 , 605902 , 503834 , 583232 , 560276 , 758992 , 632168 , 698230 , 776141 , 427019 , 458274 , 584621 , 471481 , 611324 , 820841 , 540019 , 670272 , 641539 , 794063 , 746171 , 458269 , 500908 , 609203 , 473351 , 456351 , 533213 , 553649 , 423840 , 485439 , 513360 , 605179 , 512615 , 435069 , 489868 , 382140 , 801143 , 576506 , 558654 , 451115 , 484086 , 537278 , 510873 , 517708 , 515604 , 624834 , 545623 , 639661 , 488152 , 558316 );
Copy
4
2.67 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
382140
390305
416417
423792
423840
427019
435069
451115
456351
458269
458274
459432
471481
473351
484086
485439
486052
488152
488171
489868
499169
500908
503834
510873
512615
513360
515604
517708
533213
537278
539553
540019
545623
553649
554707
558316
558654
560276
563982
567888
576506
583232
584621
586127
605179
605902
609203
611324
624834
632168
639661
641539
663709
670272
683404
688386
689488
698230
723993
746171
758992
766265
771488
772367
773797
776141
784365
794063
796228
797329
801143
820841
823719
824611
828393
]
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 (382140 , 390305 , 416417 , 423792 , 423840 , 427019 , 435069 , 451115 , 456351 , 458269 , 458274 , 459432 , 471481 , 473351 , 484086 , 485439 , 486052 , 488152 , 488171 , 489868 , 499169 , 500908 , 503834 , 510873 , 512615 , 513360 , 515604 , 517708 , 533213 , 537278 , 539553 , 540019 , 545623 , 553649 , 554707 , 558316 , 558654 , 560276 , 563982 , 567888 , 576506 , 583232 , 584621 , 586127 , 605179 , 605902 , 609203 , 611324 , 624834 , 632168 , 639661 , 641539 , 663709 , 670272 , 683404 , 688386 , 689488 , 698230 , 723993 , 746171 , 758992 , 766265 , 771488 , 772367 , 773797 , 776141 , 784365 , 794063 , 796228 , 797329 , 801143 , 820841 , 823719 , 824611 , 828393 );
Copy
5
82.43 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
382140
390305
416417
423792
423840
427019
435069
451115
456351
458269
458274
459432
471481
473351
484086
485439
486052
488152
488171
489868
499169
500908
503834
510873
512615
513360
515604
517708
533213
537278
539553
540019
545623
553649
554707
558316
558654
560276
563982
567888
576506
583232
584621
586127
605179
605902
609203
611324
624834
632168
639661
641539
663709
670272
683404
688386
689488
698230
723993
746171
758992
766265
771488
772367
773797
776141
784365
794063
796228
797329
801143
820841
823719
824611
828393
]
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 (382140 , 390305 , 416417 , 423792 , 423840 , 427019 , 435069 , 451115 , 456351 , 458269 , 458274 , 459432 , 471481 , 473351 , 484086 , 485439 , 486052 , 488152 , 488171 , 489868 , 499169 , 500908 , 503834 , 510873 , 512615 , 513360 , 515604 , 517708 , 533213 , 537278 , 539553 , 540019 , 545623 , 553649 , 554707 , 558316 , 558654 , 560276 , 563982 , 567888 , 576506 , 583232 , 584621 , 586127 , 605179 , 605902 , 609203 , 611324 , 624834 , 632168 , 639661 , 641539 , 663709 , 670272 , 683404 , 688386 , 689488 , 698230 , 723993 , 746171 , 758992 , 766265 , 771488 , 772367 , 773797 , 776141 , 784365 , 794063 , 796228 , 797329 , 801143 , 820841 , 823719 , 824611 , 828393 );
Copy