4
13.49 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
601975
617152
721102
636424
818665
816791
530412
736374
771477
411346
820947
390303
791531
439721
476576
563437
388762
511525
817526
780621
452925
758721
747091
504692
529335
527779
402385
815466
513784
605274
811906
633139
501508
599252
389829
439679
484640
409864
817917
480476
468708
603056
402145
501529
549839
606791
455923
486445
522997
560378
561077
570933
665113
486897
492121
446085
446544
679733
603709
562060
451492
469017
507591
521372
500581
429084
]
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 (601975 , 617152 , 721102 , 636424 , 818665 , 816791 , 530412 , 736374 , 771477 , 411346 , 820947 , 390303 , 791531 , 439721 , 476576 , 563437 , 388762 , 511525 , 817526 , 780621 , 452925 , 758721 , 747091 , 504692 , 529335 , 527779 , 402385 , 815466 , 513784 , 605274 , 811906 , 633139 , 501508 , 599252 , 389829 , 439679 , 484640 , 409864 , 817917 , 480476 , 468708 , 603056 , 402145 , 501529 , 549839 , 606791 , 455923 , 486445 , 522997 , 560378 , 561077 , 570933 , 665113 , 486897 , 492121 , 446085 , 446544 , 679733 , 603709 , 562060 , 451492 , 469017 , 507591 , 521372 , 500581 , 429084 );
Copy
5
3.39 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
388762
389829
390303
402145
402385
409864
411346
429084
439679
439721
446085
446544
451492
452925
455923
468708
469017
476576
480476
484640
486445
486897
492121
500581
501508
501529
504692
507591
511525
513784
521372
522997
527779
529335
530412
549839
560378
561077
562060
563437
570933
599252
601975
603056
603709
605274
606791
617152
633139
636424
665113
679733
721102
736374
747091
758721
771477
780621
791531
811906
815466
816791
817526
817917
818665
820947
]
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 (388762 , 389829 , 390303 , 402145 , 402385 , 409864 , 411346 , 429084 , 439679 , 439721 , 446085 , 446544 , 451492 , 452925 , 455923 , 468708 , 469017 , 476576 , 480476 , 484640 , 486445 , 486897 , 492121 , 500581 , 501508 , 501529 , 504692 , 507591 , 511525 , 513784 , 521372 , 522997 , 527779 , 529335 , 530412 , 549839 , 560378 , 561077 , 562060 , 563437 , 570933 , 599252 , 601975 , 603056 , 603709 , 605274 , 606791 , 617152 , 633139 , 636424 , 665113 , 679733 , 721102 , 736374 , 747091 , 758721 , 771477 , 780621 , 791531 , 811906 , 815466 , 816791 , 817526 , 817917 , 818665 , 820947 );
Copy
6
107.38 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
388762
389829
390303
402145
402385
409864
411346
429084
439679
439721
446085
446544
451492
452925
455923
468708
469017
476576
480476
484640
486445
486897
492121
500581
501508
501529
504692
507591
511525
513784
521372
522997
527779
529335
530412
549839
560378
561077
562060
563437
570933
599252
601975
603056
603709
605274
606791
617152
633139
636424
665113
679733
721102
736374
747091
758721
771477
780621
791531
811906
815466
816791
817526
817917
818665
820947
]
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 (388762 , 389829 , 390303 , 402145 , 402385 , 409864 , 411346 , 429084 , 439679 , 439721 , 446085 , 446544 , 451492 , 452925 , 455923 , 468708 , 469017 , 476576 , 480476 , 484640 , 486445 , 486897 , 492121 , 500581 , 501508 , 501529 , 504692 , 507591 , 511525 , 513784 , 521372 , 522997 , 527779 , 529335 , 530412 , 549839 , 560378 , 561077 , 562060 , 563437 , 570933 , 599252 , 601975 , 603056 , 603709 , 605274 , 606791 , 617152 , 633139 , 636424 , 665113 , 679733 , 721102 , 736374 , 747091 , 758721 , 771477 , 780621 , 791531 , 811906 , 815466 , 816791 , 817526 , 817917 , 818665 , 820947 );
Copy