3
14.50 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
532253
573774
573628
635968
756080
517999
539494
573044
482497
649620
619718
761556
623504
467755
522184
426075
524526
512300
404777
448800
504474
598194
614404
438208
483734
566033
569665
477068
549783
580855
741288
758969
455844
513129
720047
545117
459831
500924
477246
422993
525995
673149
612398
445373
498536
494672
423654
454638
437678
442669
501286
531170
435329
503391
499148
440469
573304
813257
468671
731678
469023
659654
683902
448820
519837
546112
516505
599912
598386
668526
432787
494370
571005
622932
528807
]
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 (532253 , 573774 , 573628 , 635968 , 756080 , 517999 , 539494 , 573044 , 482497 , 649620 , 619718 , 761556 , 623504 , 467755 , 522184 , 426075 , 524526 , 512300 , 404777 , 448800 , 504474 , 598194 , 614404 , 438208 , 483734 , 566033 , 569665 , 477068 , 549783 , 580855 , 741288 , 758969 , 455844 , 513129 , 720047 , 545117 , 459831 , 500924 , 477246 , 422993 , 525995 , 673149 , 612398 , 445373 , 498536 , 494672 , 423654 , 454638 , 437678 , 442669 , 501286 , 531170 , 435329 , 503391 , 499148 , 440469 , 573304 , 813257 , 468671 , 731678 , 469023 , 659654 , 683902 , 448820 , 519837 , 546112 , 516505 , 599912 , 598386 , 668526 , 432787 , 494370 , 571005 , 622932 , 528807 );
Copy
4
2.80 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
404777
422993
423654
426075
432787
435329
437678
438208
440469
442669
445373
448800
448820
454638
455844
459831
467755
468671
469023
477068
477246
482497
483734
494370
494672
498536
499148
500924
501286
503391
504474
512300
513129
516505
517999
519837
522184
524526
525995
528807
531170
532253
539494
545117
546112
549783
566033
569665
571005
573044
573304
573628
573774
580855
598194
598386
599912
612398
614404
619718
622932
623504
635968
649620
659654
668526
673149
683902
720047
731678
741288
756080
758969
761556
813257
]
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 (404777 , 422993 , 423654 , 426075 , 432787 , 435329 , 437678 , 438208 , 440469 , 442669 , 445373 , 448800 , 448820 , 454638 , 455844 , 459831 , 467755 , 468671 , 469023 , 477068 , 477246 , 482497 , 483734 , 494370 , 494672 , 498536 , 499148 , 500924 , 501286 , 503391 , 504474 , 512300 , 513129 , 516505 , 517999 , 519837 , 522184 , 524526 , 525995 , 528807 , 531170 , 532253 , 539494 , 545117 , 546112 , 549783 , 566033 , 569665 , 571005 , 573044 , 573304 , 573628 , 573774 , 580855 , 598194 , 598386 , 599912 , 612398 , 614404 , 619718 , 622932 , 623504 , 635968 , 649620 , 659654 , 668526 , 673149 , 683902 , 720047 , 731678 , 741288 , 756080 , 758969 , 761556 , 813257 );
Copy
5
121.21 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
404777
422993
423654
426075
432787
435329
437678
438208
440469
442669
445373
448800
448820
454638
455844
459831
467755
468671
469023
477068
477246
482497
483734
494370
494672
498536
499148
500924
501286
503391
504474
512300
513129
516505
517999
519837
522184
524526
525995
528807
531170
532253
539494
545117
546112
549783
566033
569665
571005
573044
573304
573628
573774
580855
598194
598386
599912
612398
614404
619718
622932
623504
635968
649620
659654
668526
673149
683902
720047
731678
741288
756080
758969
761556
813257
]
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 (404777 , 422993 , 423654 , 426075 , 432787 , 435329 , 437678 , 438208 , 440469 , 442669 , 445373 , 448800 , 448820 , 454638 , 455844 , 459831 , 467755 , 468671 , 469023 , 477068 , 477246 , 482497 , 483734 , 494370 , 494672 , 498536 , 499148 , 500924 , 501286 , 503391 , 504474 , 512300 , 513129 , 516505 , 517999 , 519837 , 522184 , 524526 , 525995 , 528807 , 531170 , 532253 , 539494 , 545117 , 546112 , 549783 , 566033 , 569665 , 571005 , 573044 , 573304 , 573628 , 573774 , 580855 , 598194 , 598386 , 599912 , 612398 , 614404 , 619718 , 622932 , 623504 , 635968 , 649620 , 659654 , 668526 , 673149 , 683902 , 720047 , 731678 , 741288 , 756080 , 758969 , 761556 , 813257 );
Copy