4
10.75 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
547286
537874
536597
809185
566800
726633
800202
531392
547314
738259
813741
549328
567993
807769
724642
749522
653551
674356
744277
789715
531245
564729
707316
604915
647610
592592
603894
775908
775911
811924
637469
739659
760804
634156
558012
603539
588499
674996
630177
609742
687105
696628
764843
382490
817851
823285
819189
667254
642216
773129
820549
547232
285207
821384
445582
396006
61895
407322
821316
400897
417448
467617
386721
575506
568370
433204
427243
574504
443308
447436
471678
519469
]
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 (547286 , 537874 , 536597 , 809185 , 566800 , 726633 , 800202 , 531392 , 547314 , 738259 , 813741 , 549328 , 567993 , 807769 , 724642 , 749522 , 653551 , 674356 , 744277 , 789715 , 531245 , 564729 , 707316 , 604915 , 647610 , 592592 , 603894 , 775908 , 775911 , 811924 , 637469 , 739659 , 760804 , 634156 , 558012 , 603539 , 588499 , 674996 , 630177 , 609742 , 687105 , 696628 , 764843 , 382490 , 817851 , 823285 , 819189 , 667254 , 642216 , 773129 , 820549 , 547232 , 285207 , 821384 , 445582 , 396006 , 61895 , 407322 , 821316 , 400897 , 417448 , 467617 , 386721 , 575506 , 568370 , 433204 , 427243 , 574504 , 443308 , 447436 , 471678 , 519469 );
Copy
5
3.29 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
61895
285207
382490
386721
396006
400897
407322
417448
427243
433204
443308
445582
447436
467617
471678
519469
531245
531392
536597
537874
547232
547286
547314
549328
558012
564729
566800
567993
568370
574504
575506
588499
592592
603539
603894
604915
609742
630177
634156
637469
642216
647610
653551
667254
674356
674996
687105
696628
707316
724642
726633
738259
739659
744277
749522
760804
764843
773129
775908
775911
789715
800202
807769
809185
811924
813741
817851
819189
820549
821316
821384
823285
]
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 (61895 , 285207 , 382490 , 386721 , 396006 , 400897 , 407322 , 417448 , 427243 , 433204 , 443308 , 445582 , 447436 , 467617 , 471678 , 519469 , 531245 , 531392 , 536597 , 537874 , 547232 , 547286 , 547314 , 549328 , 558012 , 564729 , 566800 , 567993 , 568370 , 574504 , 575506 , 588499 , 592592 , 603539 , 603894 , 604915 , 609742 , 630177 , 634156 , 637469 , 642216 , 647610 , 653551 , 667254 , 674356 , 674996 , 687105 , 696628 , 707316 , 724642 , 726633 , 738259 , 739659 , 744277 , 749522 , 760804 , 764843 , 773129 , 775908 , 775911 , 789715 , 800202 , 807769 , 809185 , 811924 , 813741 , 817851 , 819189 , 820549 , 821316 , 821384 , 823285 );
Copy
6
90.31 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
61895
285207
382490
386721
396006
400897
407322
417448
427243
433204
443308
445582
447436
467617
471678
519469
531245
531392
536597
537874
547232
547286
547314
549328
558012
564729
566800
567993
568370
574504
575506
588499
592592
603539
603894
604915
609742
630177
634156
637469
642216
647610
653551
667254
674356
674996
687105
696628
707316
724642
726633
738259
739659
744277
749522
760804
764843
773129
775908
775911
789715
800202
807769
809185
811924
813741
817851
819189
820549
821316
821384
823285
]
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 (61895 , 285207 , 382490 , 386721 , 396006 , 400897 , 407322 , 417448 , 427243 , 433204 , 443308 , 445582 , 447436 , 467617 , 471678 , 519469 , 531245 , 531392 , 536597 , 537874 , 547232 , 547286 , 547314 , 549328 , 558012 , 564729 , 566800 , 567993 , 568370 , 574504 , 575506 , 588499 , 592592 , 603539 , 603894 , 604915 , 609742 , 630177 , 634156 , 637469 , 642216 , 647610 , 653551 , 667254 , 674356 , 674996 , 687105 , 696628 , 707316 , 724642 , 726633 , 738259 , 739659 , 744277 , 749522 , 760804 , 764843 , 773129 , 775908 , 775911 , 789715 , 800202 , 807769 , 809185 , 811924 , 813741 , 817851 , 819189 , 820549 , 821316 , 821384 , 823285 );
Copy