3
11.78 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
387347
621200
467628
404279
454415
479333
475634
515812
577048
420320
483631
789374
135519
24224
619905
247538
442915
668810
542938
485870
495808
703464
538006
415847
308331
455324
439638
549825
427656
467532
468091
383888
522326
421860
390169
467952
535446
459238
511792
703502
506833
407109
489769
464008
802083
481971
465222
470459
462574
454183
389264
451795
511804
524780
561985
485697
551012
619099
524797
518820
521063
512927
454112
417338
423375
459171
521131
453313
525745
590966
608084
517775
412583
608336
520232
]
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 (387347 , 621200 , 467628 , 404279 , 454415 , 479333 , 475634 , 515812 , 577048 , 420320 , 483631 , 789374 , 135519 , 24224 , 619905 , 247538 , 442915 , 668810 , 542938 , 485870 , 495808 , 703464 , 538006 , 415847 , 308331 , 455324 , 439638 , 549825 , 427656 , 467532 , 468091 , 383888 , 522326 , 421860 , 390169 , 467952 , 535446 , 459238 , 511792 , 703502 , 506833 , 407109 , 489769 , 464008 , 802083 , 481971 , 465222 , 470459 , 462574 , 454183 , 389264 , 451795 , 511804 , 524780 , 561985 , 485697 , 551012 , 619099 , 524797 , 518820 , 521063 , 512927 , 454112 , 417338 , 423375 , 459171 , 521131 , 453313 , 525745 , 590966 , 608084 , 517775 , 412583 , 608336 , 520232 );
Copy
4
2.42 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
24224
135519
247538
308331
383888
387347
389264
390169
404279
407109
412583
415847
417338
420320
421860
423375
427656
439638
442915
451795
453313
454112
454183
454415
455324
459171
459238
462574
464008
465222
467532
467628
467952
468091
470459
475634
479333
481971
483631
485697
485870
489769
495808
506833
511792
511804
512927
515812
517775
518820
520232
521063
521131
522326
524780
524797
525745
535446
538006
542938
549825
551012
561985
577048
590966
608084
608336
619099
619905
621200
668810
703464
703502
789374
802083
]
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 (24224 , 135519 , 247538 , 308331 , 383888 , 387347 , 389264 , 390169 , 404279 , 407109 , 412583 , 415847 , 417338 , 420320 , 421860 , 423375 , 427656 , 439638 , 442915 , 451795 , 453313 , 454112 , 454183 , 454415 , 455324 , 459171 , 459238 , 462574 , 464008 , 465222 , 467532 , 467628 , 467952 , 468091 , 470459 , 475634 , 479333 , 481971 , 483631 , 485697 , 485870 , 489769 , 495808 , 506833 , 511792 , 511804 , 512927 , 515812 , 517775 , 518820 , 520232 , 521063 , 521131 , 522326 , 524780 , 524797 , 525745 , 535446 , 538006 , 542938 , 549825 , 551012 , 561985 , 577048 , 590966 , 608084 , 608336 , 619099 , 619905 , 621200 , 668810 , 703464 , 703502 , 789374 , 802083 );
Copy
5
105.53 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
24224
135519
247538
308331
383888
387347
389264
390169
404279
407109
412583
415847
417338
420320
421860
423375
427656
439638
442915
451795
453313
454112
454183
454415
455324
459171
459238
462574
464008
465222
467532
467628
467952
468091
470459
475634
479333
481971
483631
485697
485870
489769
495808
506833
511792
511804
512927
515812
517775
518820
520232
521063
521131
522326
524780
524797
525745
535446
538006
542938
549825
551012
561985
577048
590966
608084
608336
619099
619905
621200
668810
703464
703502
789374
802083
]
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 (24224 , 135519 , 247538 , 308331 , 383888 , 387347 , 389264 , 390169 , 404279 , 407109 , 412583 , 415847 , 417338 , 420320 , 421860 , 423375 , 427656 , 439638 , 442915 , 451795 , 453313 , 454112 , 454183 , 454415 , 455324 , 459171 , 459238 , 462574 , 464008 , 465222 , 467532 , 467628 , 467952 , 468091 , 470459 , 475634 , 479333 , 481971 , 483631 , 485697 , 485870 , 489769 , 495808 , 506833 , 511792 , 511804 , 512927 , 515812 , 517775 , 518820 , 520232 , 521063 , 521131 , 522326 , 524780 , 524797 , 525745 , 535446 , 538006 , 542938 , 549825 , 551012 , 561985 , 577048 , 590966 , 608084 , 608336 , 619099 , 619905 , 621200 , 668810 , 703464 , 703502 , 789374 , 802083 );
Copy