3
13.00 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
491341
493015
786038
501835
510128
515637
790508
432564
621764
488825
446006
459712
531581
542027
574867
450529
512341
499120
512737
502645
524612
623468
825684
547751
456653
479993
524597
591172
546763
455307
484368
556574
447055
460647
519364
524641
503146
528221
478087
483323
556534
469641
522294
576051
564443
528195
528010
486093
654466
421398
469764
437591
515705
546594
428771
527442
523262
597474
513566
561814
475873
542086
511366
622778
476604
599177
621272
625440
]
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 (491341 , 493015 , 786038 , 501835 , 510128 , 515637 , 790508 , 432564 , 621764 , 488825 , 446006 , 459712 , 531581 , 542027 , 574867 , 450529 , 512341 , 499120 , 512737 , 502645 , 524612 , 623468 , 825684 , 547751 , 456653 , 479993 , 524597 , 591172 , 546763 , 455307 , 484368 , 556574 , 447055 , 460647 , 519364 , 524641 , 503146 , 528221 , 478087 , 483323 , 556534 , 469641 , 522294 , 576051 , 564443 , 528195 , 528010 , 486093 , 654466 , 421398 , 469764 , 437591 , 515705 , 546594 , 428771 , 527442 , 523262 , 597474 , 513566 , 561814 , 475873 , 542086 , 511366 , 622778 , 476604 , 599177 , 621272 , 625440 );
Copy
4
2.74 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
421398
428771
432564
437591
446006
447055
450529
455307
456653
459712
460647
469641
469764
475873
476604
478087
479993
483323
484368
486093
488825
491341
493015
499120
501835
502645
503146
510128
511366
512341
512737
513566
515637
515705
519364
522294
523262
524597
524612
524641
527442
528010
528195
528221
531581
542027
542086
546594
546763
547751
556534
556574
561814
564443
574867
576051
591172
597474
599177
621272
621764
622778
623468
625440
654466
786038
790508
825684
]
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 (421398 , 428771 , 432564 , 437591 , 446006 , 447055 , 450529 , 455307 , 456653 , 459712 , 460647 , 469641 , 469764 , 475873 , 476604 , 478087 , 479993 , 483323 , 484368 , 486093 , 488825 , 491341 , 493015 , 499120 , 501835 , 502645 , 503146 , 510128 , 511366 , 512341 , 512737 , 513566 , 515637 , 515705 , 519364 , 522294 , 523262 , 524597 , 524612 , 524641 , 527442 , 528010 , 528195 , 528221 , 531581 , 542027 , 542086 , 546594 , 546763 , 547751 , 556534 , 556574 , 561814 , 564443 , 574867 , 576051 , 591172 , 597474 , 599177 , 621272 , 621764 , 622778 , 623468 , 625440 , 654466 , 786038 , 790508 , 825684 );
Copy
5
78.05 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
421398
428771
432564
437591
446006
447055
450529
455307
456653
459712
460647
469641
469764
475873
476604
478087
479993
483323
484368
486093
488825
491341
493015
499120
501835
502645
503146
510128
511366
512341
512737
513566
515637
515705
519364
522294
523262
524597
524612
524641
527442
528010
528195
528221
531581
542027
542086
546594
546763
547751
556534
556574
561814
564443
574867
576051
591172
597474
599177
621272
621764
622778
623468
625440
654466
786038
790508
825684
]
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 (421398 , 428771 , 432564 , 437591 , 446006 , 447055 , 450529 , 455307 , 456653 , 459712 , 460647 , 469641 , 469764 , 475873 , 476604 , 478087 , 479993 , 483323 , 484368 , 486093 , 488825 , 491341 , 493015 , 499120 , 501835 , 502645 , 503146 , 510128 , 511366 , 512341 , 512737 , 513566 , 515637 , 515705 , 519364 , 522294 , 523262 , 524597 , 524612 , 524641 , 527442 , 528010 , 528195 , 528221 , 531581 , 542027 , 542086 , 546594 , 546763 , 547751 , 556534 , 556574 , 561814 , 564443 , 574867 , 576051 , 591172 , 597474 , 599177 , 621272 , 621764 , 622778 , 623468 , 625440 , 654466 , 786038 , 790508 , 825684 );
Copy