3
16.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
817273
439027
506241
556341
535649
502240
635325
625776
805833
813943
796477
813365
736933
724586
733926
570229
569876
636244
614552
738593
817302
681153
572378
705449
655476
450583
640432
284922
477429
718416
802229
569150
817316
466485
584865
483853
494483
505876
581410
541840
572503
587725
761096
456707
447972
571900
33284
453786
598931
510763
520910
470392
583377
507001
450973
569903
572437
417427
438398
462600
499147
519359
659217
590889
620244
549646
515371
510013
558563
625244
572512
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 (817273 , 439027 , 506241 , 556341 , 535649 , 502240 , 635325 , 625776 , 805833 , 813943 , 796477 , 813365 , 736933 , 724586 , 733926 , 570229 , 569876 , 636244 , 614552 , 738593 , 817302 , 681153 , 572378 , 705449 , 655476 , 450583 , 640432 , 284922 , 477429 , 718416 , 802229 , 569150 , 817316 , 466485 , 584865 , 483853 , 494483 , 505876 , 581410 , 541840 , 572503 , 587725 , 761096 , 456707 , 447972 , 571900 , 33284 , 453786 , 598931 , 510763 , 520910 , 470392 , 583377 , 507001 , 450973 , 569903 , 572437 , 417427 , 438398 , 462600 , 499147 , 519359 , 659217 , 590889 , 620244 , 549646 , 515371 , 510013 , 558563 , 625244 , 572512 , 563420 );
Copy
4
4.14 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
284922
417427
438398
439027
447972
450583
450973
453786
456707
462600
466485
470392
477429
483853
494483
499147
502240
505876
506241
507001
510013
510763
515371
519359
520910
535649
541840
549646
556341
558563
563420
569150
569876
569903
570229
571900
572378
572437
572503
572512
581410
583377
584865
587725
590889
598931
614552
620244
625244
625776
635325
636244
640432
655476
659217
681153
705449
718416
724586
733926
736933
738593
761096
796477
802229
805833
813365
813943
817273
817302
817316
]
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 , 284922 , 417427 , 438398 , 439027 , 447972 , 450583 , 450973 , 453786 , 456707 , 462600 , 466485 , 470392 , 477429 , 483853 , 494483 , 499147 , 502240 , 505876 , 506241 , 507001 , 510013 , 510763 , 515371 , 519359 , 520910 , 535649 , 541840 , 549646 , 556341 , 558563 , 563420 , 569150 , 569876 , 569903 , 570229 , 571900 , 572378 , 572437 , 572503 , 572512 , 581410 , 583377 , 584865 , 587725 , 590889 , 598931 , 614552 , 620244 , 625244 , 625776 , 635325 , 636244 , 640432 , 655476 , 659217 , 681153 , 705449 , 718416 , 724586 , 733926 , 736933 , 738593 , 761096 , 796477 , 802229 , 805833 , 813365 , 813943 , 817273 , 817302 , 817316 );
Copy
5
92.07 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
284922
417427
438398
439027
447972
450583
450973
453786
456707
462600
466485
470392
477429
483853
494483
499147
502240
505876
506241
507001
510013
510763
515371
519359
520910
535649
541840
549646
556341
558563
563420
569150
569876
569903
570229
571900
572378
572437
572503
572512
581410
583377
584865
587725
590889
598931
614552
620244
625244
625776
635325
636244
640432
655476
659217
681153
705449
718416
724586
733926
736933
738593
761096
796477
802229
805833
813365
813943
817273
817302
817316
]
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 , 284922 , 417427 , 438398 , 439027 , 447972 , 450583 , 450973 , 453786 , 456707 , 462600 , 466485 , 470392 , 477429 , 483853 , 494483 , 499147 , 502240 , 505876 , 506241 , 507001 , 510013 , 510763 , 515371 , 519359 , 520910 , 535649 , 541840 , 549646 , 556341 , 558563 , 563420 , 569150 , 569876 , 569903 , 570229 , 571900 , 572378 , 572437 , 572503 , 572512 , 581410 , 583377 , 584865 , 587725 , 590889 , 598931 , 614552 , 620244 , 625244 , 625776 , 635325 , 636244 , 640432 , 655476 , 659217 , 681153 , 705449 , 718416 , 724586 , 733926 , 736933 , 738593 , 761096 , 796477 , 802229 , 805833 , 813365 , 813943 , 817273 , 817302 , 817316 );
Copy