3
10.03 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
791257
765955
152479
759816
688721
636114
752291
766700
768068
381844
514362
774872
733496
752223
803627
579264
690057
600810
738083
750361
600242
493537
609970
620813
276027
537045
773724
423333
547944
449237
451881
651123
472670
386492
504324
449301
584173
811450
632096
449260
449267
453603
458772
449302
385390
452817
445224
459259
497058
555585
647023
666920
619612
390165
433002
415992
567408
760619
521238
456634
793608
464303
797170
481904
601853
]
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 (791257 , 765955 , 152479 , 759816 , 688721 , 636114 , 752291 , 766700 , 768068 , 381844 , 514362 , 774872 , 733496 , 752223 , 803627 , 579264 , 690057 , 600810 , 738083 , 750361 , 600242 , 493537 , 609970 , 620813 , 276027 , 537045 , 773724 , 423333 , 547944 , 449237 , 451881 , 651123 , 472670 , 386492 , 504324 , 449301 , 584173 , 811450 , 632096 , 449260 , 449267 , 453603 , 458772 , 449302 , 385390 , 452817 , 445224 , 459259 , 497058 , 555585 , 647023 , 666920 , 619612 , 390165 , 433002 , 415992 , 567408 , 760619 , 521238 , 456634 , 793608 , 464303 , 797170 , 481904 , 601853 );
Copy
4
2.76 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
152479
276027
381844
385390
386492
390165
415992
423333
433002
445224
449237
449260
449267
449301
449302
451881
452817
453603
456634
458772
459259
464303
472670
481904
493537
497058
504324
514362
521238
537045
547944
555585
567408
579264
584173
600242
600810
601853
609970
619612
620813
632096
636114
647023
651123
666920
688721
690057
733496
738083
750361
752223
752291
759816
760619
765955
766700
768068
773724
774872
791257
793608
797170
803627
811450
]
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 (152479 , 276027 , 381844 , 385390 , 386492 , 390165 , 415992 , 423333 , 433002 , 445224 , 449237 , 449260 , 449267 , 449301 , 449302 , 451881 , 452817 , 453603 , 456634 , 458772 , 459259 , 464303 , 472670 , 481904 , 493537 , 497058 , 504324 , 514362 , 521238 , 537045 , 547944 , 555585 , 567408 , 579264 , 584173 , 600242 , 600810 , 601853 , 609970 , 619612 , 620813 , 632096 , 636114 , 647023 , 651123 , 666920 , 688721 , 690057 , 733496 , 738083 , 750361 , 752223 , 752291 , 759816 , 760619 , 765955 , 766700 , 768068 , 773724 , 774872 , 791257 , 793608 , 797170 , 803627 , 811450 );
Copy
5
74.73 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
152479
276027
381844
385390
386492
390165
415992
423333
433002
445224
449237
449260
449267
449301
449302
451881
452817
453603
456634
458772
459259
464303
472670
481904
493537
497058
504324
514362
521238
537045
547944
555585
567408
579264
584173
600242
600810
601853
609970
619612
620813
632096
636114
647023
651123
666920
688721
690057
733496
738083
750361
752223
752291
759816
760619
765955
766700
768068
773724
774872
791257
793608
797170
803627
811450
]
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 (152479 , 276027 , 381844 , 385390 , 386492 , 390165 , 415992 , 423333 , 433002 , 445224 , 449237 , 449260 , 449267 , 449301 , 449302 , 451881 , 452817 , 453603 , 456634 , 458772 , 459259 , 464303 , 472670 , 481904 , 493537 , 497058 , 504324 , 514362 , 521238 , 537045 , 547944 , 555585 , 567408 , 579264 , 584173 , 600242 , 600810 , 601853 , 609970 , 619612 , 620813 , 632096 , 636114 , 647023 , 651123 , 666920 , 688721 , 690057 , 733496 , 738083 , 750361 , 752223 , 752291 , 759816 , 760619 , 765955 , 766700 , 768068 , 773724 , 774872 , 791257 , 793608 , 797170 , 803627 , 811450 );
Copy