3
11.72 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
460739
24724
569971
426836
435715
471579
577586
579694
476391
457153
501991
592990
739479
480912
483253
548596
689382
567743
429528
540775
482139
513791
503155
482272
585345
593026
402716
437452
498865
501065
532255
520008
403928
433901
430814
448088
546107
579534
588647
591278
433273
426446
463015
418686
418065
435941
415188
552372
579505
655838
689622
414960
469389
495225
498852
527267
510975
465519
546106
766625
478948
556520
462872
495095
498211
624847
559389
621087
636209
631957
625441
525276
]
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 (460739 , 24724 , 569971 , 426836 , 435715 , 471579 , 577586 , 579694 , 476391 , 457153 , 501991 , 592990 , 739479 , 480912 , 483253 , 548596 , 689382 , 567743 , 429528 , 540775 , 482139 , 513791 , 503155 , 482272 , 585345 , 593026 , 402716 , 437452 , 498865 , 501065 , 532255 , 520008 , 403928 , 433901 , 430814 , 448088 , 546107 , 579534 , 588647 , 591278 , 433273 , 426446 , 463015 , 418686 , 418065 , 435941 , 415188 , 552372 , 579505 , 655838 , 689622 , 414960 , 469389 , 495225 , 498852 , 527267 , 510975 , 465519 , 546106 , 766625 , 478948 , 556520 , 462872 , 495095 , 498211 , 624847 , 559389 , 621087 , 636209 , 631957 , 625441 , 525276 );
Copy
4
2.31 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
24724
402716
403928
414960
415188
418065
418686
426446
426836
429528
430814
433273
433901
435715
435941
437452
448088
457153
460739
462872
463015
465519
469389
471579
476391
478948
480912
482139
482272
483253
495095
495225
498211
498852
498865
501065
501991
503155
510975
513791
520008
525276
527267
532255
540775
546106
546107
548596
552372
556520
559389
567743
569971
577586
579505
579534
579694
585345
588647
591278
592990
593026
621087
624847
625441
631957
636209
655838
689382
689622
739479
766625
]
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 (24724 , 402716 , 403928 , 414960 , 415188 , 418065 , 418686 , 426446 , 426836 , 429528 , 430814 , 433273 , 433901 , 435715 , 435941 , 437452 , 448088 , 457153 , 460739 , 462872 , 463015 , 465519 , 469389 , 471579 , 476391 , 478948 , 480912 , 482139 , 482272 , 483253 , 495095 , 495225 , 498211 , 498852 , 498865 , 501065 , 501991 , 503155 , 510975 , 513791 , 520008 , 525276 , 527267 , 532255 , 540775 , 546106 , 546107 , 548596 , 552372 , 556520 , 559389 , 567743 , 569971 , 577586 , 579505 , 579534 , 579694 , 585345 , 588647 , 591278 , 592990 , 593026 , 621087 , 624847 , 625441 , 631957 , 636209 , 655838 , 689382 , 689622 , 739479 , 766625 );
Copy
5
77.63 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
24724
402716
403928
414960
415188
418065
418686
426446
426836
429528
430814
433273
433901
435715
435941
437452
448088
457153
460739
462872
463015
465519
469389
471579
476391
478948
480912
482139
482272
483253
495095
495225
498211
498852
498865
501065
501991
503155
510975
513791
520008
525276
527267
532255
540775
546106
546107
548596
552372
556520
559389
567743
569971
577586
579505
579534
579694
585345
588647
591278
592990
593026
621087
624847
625441
631957
636209
655838
689382
689622
739479
766625
]
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 (24724 , 402716 , 403928 , 414960 , 415188 , 418065 , 418686 , 426446 , 426836 , 429528 , 430814 , 433273 , 433901 , 435715 , 435941 , 437452 , 448088 , 457153 , 460739 , 462872 , 463015 , 465519 , 469389 , 471579 , 476391 , 478948 , 480912 , 482139 , 482272 , 483253 , 495095 , 495225 , 498211 , 498852 , 498865 , 501065 , 501991 , 503155 , 510975 , 513791 , 520008 , 525276 , 527267 , 532255 , 540775 , 546106 , 546107 , 548596 , 552372 , 556520 , 559389 , 567743 , 569971 , 577586 , 579505 , 579534 , 579694 , 585345 , 588647 , 591278 , 592990 , 593026 , 621087 , 624847 , 625441 , 631957 , 636209 , 655838 , 689382 , 689622 , 739479 , 766625 );
Copy