3
218.24 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
720509
395724
797460
401117
804442
809291
401114
798101
756220
682206
781797
807411
815011
760367
701989
788161
724656
403458
596907
402882
395655
585589
785547
764361
469813
682510
693034
728174
643008
720942
532008
643279
401439
440629
448756
609799
812914
800456
737451
608049
402136
416184
814515
564721
570724
580234
730244
398833
531776
625444
525236
420530
486399
566140
679653
580522
806153
515179
448829
472781
580765
564741
564737
515167
596659
515153
472441
473871
507880
]
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 (720509 , 395724 , 797460 , 401117 , 804442 , 809291 , 401114 , 798101 , 756220 , 682206 , 781797 , 807411 , 815011 , 760367 , 701989 , 788161 , 724656 , 403458 , 596907 , 402882 , 395655 , 585589 , 785547 , 764361 , 469813 , 682510 , 693034 , 728174 , 643008 , 720942 , 532008 , 643279 , 401439 , 440629 , 448756 , 609799 , 812914 , 800456 , 737451 , 608049 , 402136 , 416184 , 814515 , 564721 , 570724 , 580234 , 730244 , 398833 , 531776 , 625444 , 525236 , 420530 , 486399 , 566140 , 679653 , 580522 , 806153 , 515179 , 448829 , 472781 , 580765 , 564741 , 564737 , 515167 , 596659 , 515153 , 472441 , 473871 , 507880 );
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
395655
395724
398833
401114
401117
401439
402136
402882
403458
416184
420530
440629
448756
448829
469813
472441
472781
473871
486399
507880
515153
515167
515179
525236
531776
532008
564721
564737
564741
566140
570724
580234
580522
580765
585589
596659
596907
608049
609799
625444
643008
643279
679653
682206
682510
693034
701989
720509
720942
724656
728174
730244
737451
756220
760367
764361
781797
785547
788161
797460
798101
800456
804442
806153
807411
809291
812914
814515
815011
]
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 (395655 , 395724 , 398833 , 401114 , 401117 , 401439 , 402136 , 402882 , 403458 , 416184 , 420530 , 440629 , 448756 , 448829 , 469813 , 472441 , 472781 , 473871 , 486399 , 507880 , 515153 , 515167 , 515179 , 525236 , 531776 , 532008 , 564721 , 564737 , 564741 , 566140 , 570724 , 580234 , 580522 , 580765 , 585589 , 596659 , 596907 , 608049 , 609799 , 625444 , 643008 , 643279 , 679653 , 682206 , 682510 , 693034 , 701989 , 720509 , 720942 , 724656 , 728174 , 730244 , 737451 , 756220 , 760367 , 764361 , 781797 , 785547 , 788161 , 797460 , 798101 , 800456 , 804442 , 806153 , 807411 , 809291 , 812914 , 814515 , 815011 );
Copy
5
125.56 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
395655
395724
398833
401114
401117
401439
402136
402882
403458
416184
420530
440629
448756
448829
469813
472441
472781
473871
486399
507880
515153
515167
515179
525236
531776
532008
564721
564737
564741
566140
570724
580234
580522
580765
585589
596659
596907
608049
609799
625444
643008
643279
679653
682206
682510
693034
701989
720509
720942
724656
728174
730244
737451
756220
760367
764361
781797
785547
788161
797460
798101
800456
804442
806153
807411
809291
812914
814515
815011
]
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 (395655 , 395724 , 398833 , 401114 , 401117 , 401439 , 402136 , 402882 , 403458 , 416184 , 420530 , 440629 , 448756 , 448829 , 469813 , 472441 , 472781 , 473871 , 486399 , 507880 , 515153 , 515167 , 515179 , 525236 , 531776 , 532008 , 564721 , 564737 , 564741 , 566140 , 570724 , 580234 , 580522 , 580765 , 585589 , 596659 , 596907 , 608049 , 609799 , 625444 , 643008 , 643279 , 679653 , 682206 , 682510 , 693034 , 701989 , 720509 , 720942 , 724656 , 728174 , 730244 , 737451 , 756220 , 760367 , 764361 , 781797 , 785547 , 788161 , 797460 , 798101 , 800456 , 804442 , 806153 , 807411 , 809291 , 812914 , 814515 , 815011 );
Copy