4
11.16 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
812163
812501
559655
652225
762187
542914
231299
528199
591619
544527
402047
389518
430808
423360
459153
460177
460976
471627
505253
528889
537343
604028
745203
426000
478015
383501
418923
464390
528196
544510
679713
586449
705686
402342
401952
477337
481140
406882
518266
519848
816260
464500
469473
565279
652172
634545
595863
596990
612121
464407
464404
486406
528380
425961
434003
461048
475975
452491
475543
468884
507646
508133
544461
680167
604067
408284
480945
464397
520720
526838
451940
520639
515545
416959
603255
]
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 (812163 , 812501 , 559655 , 652225 , 762187 , 542914 , 231299 , 528199 , 591619 , 544527 , 402047 , 389518 , 430808 , 423360 , 459153 , 460177 , 460976 , 471627 , 505253 , 528889 , 537343 , 604028 , 745203 , 426000 , 478015 , 383501 , 418923 , 464390 , 528196 , 544510 , 679713 , 586449 , 705686 , 402342 , 401952 , 477337 , 481140 , 406882 , 518266 , 519848 , 816260 , 464500 , 469473 , 565279 , 652172 , 634545 , 595863 , 596990 , 612121 , 464407 , 464404 , 486406 , 528380 , 425961 , 434003 , 461048 , 475975 , 452491 , 475543 , 468884 , 507646 , 508133 , 544461 , 680167 , 604067 , 408284 , 480945 , 464397 , 520720 , 526838 , 451940 , 520639 , 515545 , 416959 , 603255 );
Copy
5
7.32 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
231299
383501
389518
401952
402047
402342
406882
408284
416959
418923
423360
425961
426000
430808
434003
451940
452491
459153
460177
460976
461048
464390
464397
464404
464407
464500
468884
469473
471627
475543
475975
477337
478015
480945
481140
486406
505253
507646
508133
515545
518266
519848
520639
520720
526838
528196
528199
528380
528889
537343
542914
544461
544510
544527
559655
565279
586449
591619
595863
596990
603255
604028
604067
612121
634545
652172
652225
679713
680167
705686
745203
762187
812163
812501
816260
]
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 (231299 , 383501 , 389518 , 401952 , 402047 , 402342 , 406882 , 408284 , 416959 , 418923 , 423360 , 425961 , 426000 , 430808 , 434003 , 451940 , 452491 , 459153 , 460177 , 460976 , 461048 , 464390 , 464397 , 464404 , 464407 , 464500 , 468884 , 469473 , 471627 , 475543 , 475975 , 477337 , 478015 , 480945 , 481140 , 486406 , 505253 , 507646 , 508133 , 515545 , 518266 , 519848 , 520639 , 520720 , 526838 , 528196 , 528199 , 528380 , 528889 , 537343 , 542914 , 544461 , 544510 , 544527 , 559655 , 565279 , 586449 , 591619 , 595863 , 596990 , 603255 , 604028 , 604067 , 612121 , 634545 , 652172 , 652225 , 679713 , 680167 , 705686 , 745203 , 762187 , 812163 , 812501 , 816260 );
Copy
6
93.40 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
231299
383501
389518
401952
402047
402342
406882
408284
416959
418923
423360
425961
426000
430808
434003
451940
452491
459153
460177
460976
461048
464390
464397
464404
464407
464500
468884
469473
471627
475543
475975
477337
478015
480945
481140
486406
505253
507646
508133
515545
518266
519848
520639
520720
526838
528196
528199
528380
528889
537343
542914
544461
544510
544527
559655
565279
586449
591619
595863
596990
603255
604028
604067
612121
634545
652172
652225
679713
680167
705686
745203
762187
812163
812501
816260
]
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 (231299 , 383501 , 389518 , 401952 , 402047 , 402342 , 406882 , 408284 , 416959 , 418923 , 423360 , 425961 , 426000 , 430808 , 434003 , 451940 , 452491 , 459153 , 460177 , 460976 , 461048 , 464390 , 464397 , 464404 , 464407 , 464500 , 468884 , 469473 , 471627 , 475543 , 475975 , 477337 , 478015 , 480945 , 481140 , 486406 , 505253 , 507646 , 508133 , 515545 , 518266 , 519848 , 520639 , 520720 , 526838 , 528196 , 528199 , 528380 , 528889 , 537343 , 542914 , 544461 , 544510 , 544527 , 559655 , 565279 , 586449 , 591619 , 595863 , 596990 , 603255 , 604028 , 604067 , 612121 , 634545 , 652172 , 652225 , 679713 , 680167 , 705686 , 745203 , 762187 , 812163 , 812501 , 816260 );
Copy