3
14.98 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
554414
542750
542746
496934
484739
462279
460756
470913
454521
494036
415819
470604
484713
556422
475807
484465
492050
522215
513606
457786
507767
474632
419550
477043
478557
527031
491369
566782
599844
636295
485507
517567
515361
454102
559950
443425
456451
464326
484708
466090
575441
513607
558437
516090
577435
593835
526721
444185
429898
460733
545015
517117
529457
639258
555789
583723
486332
563441
502538
424060
542954
492111
446894
474643
544455
518012
628426
522662
602945
]
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 (554414 , 542750 , 542746 , 496934 , 484739 , 462279 , 460756 , 470913 , 454521 , 494036 , 415819 , 470604 , 484713 , 556422 , 475807 , 484465 , 492050 , 522215 , 513606 , 457786 , 507767 , 474632 , 419550 , 477043 , 478557 , 527031 , 491369 , 566782 , 599844 , 636295 , 485507 , 517567 , 515361 , 454102 , 559950 , 443425 , 456451 , 464326 , 484708 , 466090 , 575441 , 513607 , 558437 , 516090 , 577435 , 593835 , 526721 , 444185 , 429898 , 460733 , 545015 , 517117 , 529457 , 639258 , 555789 , 583723 , 486332 , 563441 , 502538 , 424060 , 542954 , 492111 , 446894 , 474643 , 544455 , 518012 , 628426 , 522662 , 602945 );
Copy
4
2.70 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
415819
419550
424060
429898
443425
444185
446894
454102
454521
456451
457786
460733
460756
462279
464326
466090
470604
470913
474632
474643
475807
477043
478557
484465
484708
484713
484739
485507
486332
491369
492050
492111
494036
496934
502538
507767
513606
513607
515361
516090
517117
517567
518012
522215
522662
526721
527031
529457
542746
542750
542954
544455
545015
554414
555789
556422
558437
559950
563441
566782
575441
577435
583723
593835
599844
602945
628426
636295
639258
]
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 (415819 , 419550 , 424060 , 429898 , 443425 , 444185 , 446894 , 454102 , 454521 , 456451 , 457786 , 460733 , 460756 , 462279 , 464326 , 466090 , 470604 , 470913 , 474632 , 474643 , 475807 , 477043 , 478557 , 484465 , 484708 , 484713 , 484739 , 485507 , 486332 , 491369 , 492050 , 492111 , 494036 , 496934 , 502538 , 507767 , 513606 , 513607 , 515361 , 516090 , 517117 , 517567 , 518012 , 522215 , 522662 , 526721 , 527031 , 529457 , 542746 , 542750 , 542954 , 544455 , 545015 , 554414 , 555789 , 556422 , 558437 , 559950 , 563441 , 566782 , 575441 , 577435 , 583723 , 593835 , 599844 , 602945 , 628426 , 636295 , 639258 );
Copy
5
74.18 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
415819
419550
424060
429898
443425
444185
446894
454102
454521
456451
457786
460733
460756
462279
464326
466090
470604
470913
474632
474643
475807
477043
478557
484465
484708
484713
484739
485507
486332
491369
492050
492111
494036
496934
502538
507767
513606
513607
515361
516090
517117
517567
518012
522215
522662
526721
527031
529457
542746
542750
542954
544455
545015
554414
555789
556422
558437
559950
563441
566782
575441
577435
583723
593835
599844
602945
628426
636295
639258
]
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 (415819 , 419550 , 424060 , 429898 , 443425 , 444185 , 446894 , 454102 , 454521 , 456451 , 457786 , 460733 , 460756 , 462279 , 464326 , 466090 , 470604 , 470913 , 474632 , 474643 , 475807 , 477043 , 478557 , 484465 , 484708 , 484713 , 484739 , 485507 , 486332 , 491369 , 492050 , 492111 , 494036 , 496934 , 502538 , 507767 , 513606 , 513607 , 515361 , 516090 , 517117 , 517567 , 518012 , 522215 , 522662 , 526721 , 527031 , 529457 , 542746 , 542750 , 542954 , 544455 , 545015 , 554414 , 555789 , 556422 , 558437 , 559950 , 563441 , 566782 , 575441 , 577435 , 583723 , 593835 , 599844 , 602945 , 628426 , 636295 , 639258 );
Copy