3
13.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
617170
794794
459158
516306
443387
683139
476288
476015
453070
487109
784242
805143
390950
580263
425655
477050
544604
714613
491771
485133
500369
497537
530912
606473
803347
775857
429768
516329
492563
551065
650542
802062
91379
738821
604331
811486
748357
794230
495275
532662
667017
632712
390565
447038
595729
784908
727900
758099
710396
525657
525633
543606
583996
603254
478572
651609
630915
512854
401919
543615
720288
636579
590560
423940
406381
494264
649596
632680
]
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 (617170 , 794794 , 459158 , 516306 , 443387 , 683139 , 476288 , 476015 , 453070 , 487109 , 784242 , 805143 , 390950 , 580263 , 425655 , 477050 , 544604 , 714613 , 491771 , 485133 , 500369 , 497537 , 530912 , 606473 , 803347 , 775857 , 429768 , 516329 , 492563 , 551065 , 650542 , 802062 , 91379 , 738821 , 604331 , 811486 , 748357 , 794230 , 495275 , 532662 , 667017 , 632712 , 390565 , 447038 , 595729 , 784908 , 727900 , 758099 , 710396 , 525657 , 525633 , 543606 , 583996 , 603254 , 478572 , 651609 , 630915 , 512854 , 401919 , 543615 , 720288 , 636579 , 590560 , 423940 , 406381 , 494264 , 649596 , 632680 );
Copy
4
3.05 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
91379
390565
390950
401919
406381
423940
425655
429768
443387
447038
453070
459158
476015
476288
477050
478572
485133
487109
491771
492563
494264
495275
497537
500369
512854
516306
516329
525633
525657
530912
532662
543606
543615
544604
551065
580263
583996
590560
595729
603254
604331
606473
617170
630915
632680
632712
636579
649596
650542
651609
667017
683139
710396
714613
720288
727900
738821
748357
758099
775857
784242
784908
794230
794794
802062
803347
805143
811486
]
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 (91379 , 390565 , 390950 , 401919 , 406381 , 423940 , 425655 , 429768 , 443387 , 447038 , 453070 , 459158 , 476015 , 476288 , 477050 , 478572 , 485133 , 487109 , 491771 , 492563 , 494264 , 495275 , 497537 , 500369 , 512854 , 516306 , 516329 , 525633 , 525657 , 530912 , 532662 , 543606 , 543615 , 544604 , 551065 , 580263 , 583996 , 590560 , 595729 , 603254 , 604331 , 606473 , 617170 , 630915 , 632680 , 632712 , 636579 , 649596 , 650542 , 651609 , 667017 , 683139 , 710396 , 714613 , 720288 , 727900 , 738821 , 748357 , 758099 , 775857 , 784242 , 784908 , 794230 , 794794 , 802062 , 803347 , 805143 , 811486 );
Copy
5
122.64 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
91379
390565
390950
401919
406381
423940
425655
429768
443387
447038
453070
459158
476015
476288
477050
478572
485133
487109
491771
492563
494264
495275
497537
500369
512854
516306
516329
525633
525657
530912
532662
543606
543615
544604
551065
580263
583996
590560
595729
603254
604331
606473
617170
630915
632680
632712
636579
649596
650542
651609
667017
683139
710396
714613
720288
727900
738821
748357
758099
775857
784242
784908
794230
794794
802062
803347
805143
811486
]
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 (91379 , 390565 , 390950 , 401919 , 406381 , 423940 , 425655 , 429768 , 443387 , 447038 , 453070 , 459158 , 476015 , 476288 , 477050 , 478572 , 485133 , 487109 , 491771 , 492563 , 494264 , 495275 , 497537 , 500369 , 512854 , 516306 , 516329 , 525633 , 525657 , 530912 , 532662 , 543606 , 543615 , 544604 , 551065 , 580263 , 583996 , 590560 , 595729 , 603254 , 604331 , 606473 , 617170 , 630915 , 632680 , 632712 , 636579 , 649596 , 650542 , 651609 , 667017 , 683139 , 710396 , 714613 , 720288 , 727900 , 738821 , 748357 , 758099 , 775857 , 784242 , 784908 , 794230 , 794794 , 802062 , 803347 , 805143 , 811486 );
Copy