4
14.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
541840
571900
681039
572503
584865
587725
585782
806914
761096
719045
402312
33284
453786
465756
494483
521055
439027
456707
447972
450435
450973
505340
553283
547913
569903
572437
598931
783481
736141
724636
710403
388762
396305
530244
510763
521988
470392
556341
583377
748665
438398
462600
424637
520910
507001
499147
519359
549646
558563
670226
659217
590889
620244
807899
417427
423027
533290
625244
745312
515371
510013
499159
572512
554915
563420
]
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 (541840 , 571900 , 681039 , 572503 , 584865 , 587725 , 585782 , 806914 , 761096 , 719045 , 402312 , 33284 , 453786 , 465756 , 494483 , 521055 , 439027 , 456707 , 447972 , 450435 , 450973 , 505340 , 553283 , 547913 , 569903 , 572437 , 598931 , 783481 , 736141 , 724636 , 710403 , 388762 , 396305 , 530244 , 510763 , 521988 , 470392 , 556341 , 583377 , 748665 , 438398 , 462600 , 424637 , 520910 , 507001 , 499147 , 519359 , 549646 , 558563 , 670226 , 659217 , 590889 , 620244 , 807899 , 417427 , 423027 , 533290 , 625244 , 745312 , 515371 , 510013 , 499159 , 572512 , 554915 , 563420 );
Copy
5
2.47 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
33284
388762
396305
402312
417427
423027
424637
438398
439027
447972
450435
450973
453786
456707
462600
465756
470392
494483
499147
499159
505340
507001
510013
510763
515371
519359
520910
521055
521988
530244
533290
541840
547913
549646
553283
554915
556341
558563
563420
569903
571900
572437
572503
572512
583377
584865
585782
587725
590889
598931
620244
625244
659217
670226
681039
710403
719045
724636
736141
745312
748665
761096
783481
806914
807899
]
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 (33284 , 388762 , 396305 , 402312 , 417427 , 423027 , 424637 , 438398 , 439027 , 447972 , 450435 , 450973 , 453786 , 456707 , 462600 , 465756 , 470392 , 494483 , 499147 , 499159 , 505340 , 507001 , 510013 , 510763 , 515371 , 519359 , 520910 , 521055 , 521988 , 530244 , 533290 , 541840 , 547913 , 549646 , 553283 , 554915 , 556341 , 558563 , 563420 , 569903 , 571900 , 572437 , 572503 , 572512 , 583377 , 584865 , 585782 , 587725 , 590889 , 598931 , 620244 , 625244 , 659217 , 670226 , 681039 , 710403 , 719045 , 724636 , 736141 , 745312 , 748665 , 761096 , 783481 , 806914 , 807899 );
Copy
6
72.67 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
33284
388762
396305
402312
417427
423027
424637
438398
439027
447972
450435
450973
453786
456707
462600
465756
470392
494483
499147
499159
505340
507001
510013
510763
515371
519359
520910
521055
521988
530244
533290
541840
547913
549646
553283
554915
556341
558563
563420
569903
571900
572437
572503
572512
583377
584865
585782
587725
590889
598931
620244
625244
659217
670226
681039
710403
719045
724636
736141
745312
748665
761096
783481
806914
807899
]
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 (33284 , 388762 , 396305 , 402312 , 417427 , 423027 , 424637 , 438398 , 439027 , 447972 , 450435 , 450973 , 453786 , 456707 , 462600 , 465756 , 470392 , 494483 , 499147 , 499159 , 505340 , 507001 , 510013 , 510763 , 515371 , 519359 , 520910 , 521055 , 521988 , 530244 , 533290 , 541840 , 547913 , 549646 , 553283 , 554915 , 556341 , 558563 , 563420 , 569903 , 571900 , 572437 , 572503 , 572512 , 583377 , 584865 , 585782 , 587725 , 590889 , 598931 , 620244 , 625244 , 659217 , 670226 , 681039 , 710403 , 719045 , 724636 , 736141 , 745312 , 748665 , 761096 , 783481 , 806914 , 807899 );
Copy