3
12.70 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
798712
579306
392645
421432
513269
793214
613868
655268
791297
504132
770667
651294
768469
507114
456250
455833
435740
454416
569618
559016
558343
425128
465730
397714
383539
471759
507831
437295
456896
528232
500130
398447
650950
764491
529114
499526
456688
566100
615944
454333
460957
557794
416905
391600
541460
789614
548043
482030
572305
521933
650224
385121
479676
458013
282138
460287
501651
388390
444849
383748
471749
596652
523306
608336
475275
564009
]
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 (798712 , 579306 , 392645 , 421432 , 513269 , 793214 , 613868 , 655268 , 791297 , 504132 , 770667 , 651294 , 768469 , 507114 , 456250 , 455833 , 435740 , 454416 , 569618 , 559016 , 558343 , 425128 , 465730 , 397714 , 383539 , 471759 , 507831 , 437295 , 456896 , 528232 , 500130 , 398447 , 650950 , 764491 , 529114 , 499526 , 456688 , 566100 , 615944 , 454333 , 460957 , 557794 , 416905 , 391600 , 541460 , 789614 , 548043 , 482030 , 572305 , 521933 , 650224 , 385121 , 479676 , 458013 , 282138 , 460287 , 501651 , 388390 , 444849 , 383748 , 471749 , 596652 , 523306 , 608336 , 475275 , 564009 );
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
282138
383539
383748
385121
388390
391600
392645
397714
398447
416905
421432
425128
435740
437295
444849
454333
454416
455833
456250
456688
456896
458013
460287
460957
465730
471749
471759
475275
479676
482030
499526
500130
501651
504132
507114
507831
513269
521933
523306
528232
529114
541460
548043
557794
558343
559016
564009
566100
569618
572305
579306
596652
608336
613868
615944
650224
650950
651294
655268
764491
768469
770667
789614
791297
793214
798712
]
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 (282138 , 383539 , 383748 , 385121 , 388390 , 391600 , 392645 , 397714 , 398447 , 416905 , 421432 , 425128 , 435740 , 437295 , 444849 , 454333 , 454416 , 455833 , 456250 , 456688 , 456896 , 458013 , 460287 , 460957 , 465730 , 471749 , 471759 , 475275 , 479676 , 482030 , 499526 , 500130 , 501651 , 504132 , 507114 , 507831 , 513269 , 521933 , 523306 , 528232 , 529114 , 541460 , 548043 , 557794 , 558343 , 559016 , 564009 , 566100 , 569618 , 572305 , 579306 , 596652 , 608336 , 613868 , 615944 , 650224 , 650950 , 651294 , 655268 , 764491 , 768469 , 770667 , 789614 , 791297 , 793214 , 798712 );
Copy
5
87.54 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
282138
383539
383748
385121
388390
391600
392645
397714
398447
416905
421432
425128
435740
437295
444849
454333
454416
455833
456250
456688
456896
458013
460287
460957
465730
471749
471759
475275
479676
482030
499526
500130
501651
504132
507114
507831
513269
521933
523306
528232
529114
541460
548043
557794
558343
559016
564009
566100
569618
572305
579306
596652
608336
613868
615944
650224
650950
651294
655268
764491
768469
770667
789614
791297
793214
798712
]
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 (282138 , 383539 , 383748 , 385121 , 388390 , 391600 , 392645 , 397714 , 398447 , 416905 , 421432 , 425128 , 435740 , 437295 , 444849 , 454333 , 454416 , 455833 , 456250 , 456688 , 456896 , 458013 , 460287 , 460957 , 465730 , 471749 , 471759 , 475275 , 479676 , 482030 , 499526 , 500130 , 501651 , 504132 , 507114 , 507831 , 513269 , 521933 , 523306 , 528232 , 529114 , 541460 , 548043 , 557794 , 558343 , 559016 , 564009 , 566100 , 569618 , 572305 , 579306 , 596652 , 608336 , 613868 , 615944 , 650224 , 650950 , 651294 , 655268 , 764491 , 768469 , 770667 , 789614 , 791297 , 793214 , 798712 );
Copy