3
11.44 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
813721
805679
813515
592946
513761
758505
749335
531082
545465
619367
524089
606801
541366
491786
610726
827721
645956
776630
676734
53553
791306
763332
796266
475761
457508
641231
813099
792589
441770
614897
740899
789838
819609
514244
737401
460283
467093
655827
655864
446782
250215
457346
459311
11013
462670
459363
749338
644422
513121
504662
789694
459357
437963
459309
517066
487202
517106
453350
549660
459319
674986
529315
523205
477424
520840
524628
469762
530637
]
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 (813721 , 805679 , 813515 , 592946 , 513761 , 758505 , 749335 , 531082 , 545465 , 619367 , 524089 , 606801 , 541366 , 491786 , 610726 , 827721 , 645956 , 776630 , 676734 , 53553 , 791306 , 763332 , 796266 , 475761 , 457508 , 641231 , 813099 , 792589 , 441770 , 614897 , 740899 , 789838 , 819609 , 514244 , 737401 , 460283 , 467093 , 655827 , 655864 , 446782 , 250215 , 457346 , 459311 , 11013 , 462670 , 459363 , 749338 , 644422 , 513121 , 504662 , 789694 , 459357 , 437963 , 459309 , 517066 , 487202 , 517106 , 453350 , 549660 , 459319 , 674986 , 529315 , 523205 , 477424 , 520840 , 524628 , 469762 , 530637 );
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
11013
53553
250215
437963
441770
446782
453350
457346
457508
459309
459311
459319
459357
459363
460283
462670
467093
469762
475761
477424
487202
491786
504662
513121
513761
514244
517066
517106
520840
523205
524089
524628
529315
530637
531082
541366
545465
549660
592946
606801
610726
614897
619367
641231
644422
645956
655827
655864
674986
676734
737401
740899
749335
749338
758505
763332
776630
789694
789838
791306
792589
796266
805679
813099
813515
813721
819609
827721
]
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 (11013 , 53553 , 250215 , 437963 , 441770 , 446782 , 453350 , 457346 , 457508 , 459309 , 459311 , 459319 , 459357 , 459363 , 460283 , 462670 , 467093 , 469762 , 475761 , 477424 , 487202 , 491786 , 504662 , 513121 , 513761 , 514244 , 517066 , 517106 , 520840 , 523205 , 524089 , 524628 , 529315 , 530637 , 531082 , 541366 , 545465 , 549660 , 592946 , 606801 , 610726 , 614897 , 619367 , 641231 , 644422 , 645956 , 655827 , 655864 , 674986 , 676734 , 737401 , 740899 , 749335 , 749338 , 758505 , 763332 , 776630 , 789694 , 789838 , 791306 , 792589 , 796266 , 805679 , 813099 , 813515 , 813721 , 819609 , 827721 );
Copy
5
82.09 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
11013
53553
250215
437963
441770
446782
453350
457346
457508
459309
459311
459319
459357
459363
460283
462670
467093
469762
475761
477424
487202
491786
504662
513121
513761
514244
517066
517106
520840
523205
524089
524628
529315
530637
531082
541366
545465
549660
592946
606801
610726
614897
619367
641231
644422
645956
655827
655864
674986
676734
737401
740899
749335
749338
758505
763332
776630
789694
789838
791306
792589
796266
805679
813099
813515
813721
819609
827721
]
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 (11013 , 53553 , 250215 , 437963 , 441770 , 446782 , 453350 , 457346 , 457508 , 459309 , 459311 , 459319 , 459357 , 459363 , 460283 , 462670 , 467093 , 469762 , 475761 , 477424 , 487202 , 491786 , 504662 , 513121 , 513761 , 514244 , 517066 , 517106 , 520840 , 523205 , 524089 , 524628 , 529315 , 530637 , 531082 , 541366 , 545465 , 549660 , 592946 , 606801 , 610726 , 614897 , 619367 , 641231 , 644422 , 645956 , 655827 , 655864 , 674986 , 676734 , 737401 , 740899 , 749335 , 749338 , 758505 , 763332 , 776630 , 789694 , 789838 , 791306 , 792589 , 796266 , 805679 , 813099 , 813515 , 813721 , 819609 , 827721 );
Copy