3
12.03 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
521835
395489
423337
499382
534428
460044
551238
552376
559346
572696
693015
716777
583358
625421
726838
723919
741758
765848
396565
447496
481937
429792
470793
506411
522650
489597
606564
642403
803459
766626
810986
411015
474059
466474
510282
524641
460041
494513
581709
565862
588249
524612
527847
530043
417889
454081
524900
536489
497889
579582
447236
455923
456441
383597
520797
577410
577360
614621
419609
425655
677303
590230
624451
504231
543880
572022
620995
407597
]
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 (521835 , 395489 , 423337 , 499382 , 534428 , 460044 , 551238 , 552376 , 559346 , 572696 , 693015 , 716777 , 583358 , 625421 , 726838 , 723919 , 741758 , 765848 , 396565 , 447496 , 481937 , 429792 , 470793 , 506411 , 522650 , 489597 , 606564 , 642403 , 803459 , 766626 , 810986 , 411015 , 474059 , 466474 , 510282 , 524641 , 460041 , 494513 , 581709 , 565862 , 588249 , 524612 , 527847 , 530043 , 417889 , 454081 , 524900 , 536489 , 497889 , 579582 , 447236 , 455923 , 456441 , 383597 , 520797 , 577410 , 577360 , 614621 , 419609 , 425655 , 677303 , 590230 , 624451 , 504231 , 543880 , 572022 , 620995 , 407597 );
Copy
4
2.25 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
383597
395489
396565
407597
411015
417889
419609
423337
425655
429792
447236
447496
454081
455923
456441
460041
460044
466474
470793
474059
481937
489597
494513
497889
499382
504231
506411
510282
520797
521835
522650
524612
524641
524900
527847
530043
534428
536489
543880
551238
552376
559346
565862
572022
572696
577360
577410
579582
581709
583358
588249
590230
606564
614621
620995
624451
625421
642403
677303
693015
716777
723919
726838
741758
765848
766626
803459
810986
]
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 (383597 , 395489 , 396565 , 407597 , 411015 , 417889 , 419609 , 423337 , 425655 , 429792 , 447236 , 447496 , 454081 , 455923 , 456441 , 460041 , 460044 , 466474 , 470793 , 474059 , 481937 , 489597 , 494513 , 497889 , 499382 , 504231 , 506411 , 510282 , 520797 , 521835 , 522650 , 524612 , 524641 , 524900 , 527847 , 530043 , 534428 , 536489 , 543880 , 551238 , 552376 , 559346 , 565862 , 572022 , 572696 , 577360 , 577410 , 579582 , 581709 , 583358 , 588249 , 590230 , 606564 , 614621 , 620995 , 624451 , 625421 , 642403 , 677303 , 693015 , 716777 , 723919 , 726838 , 741758 , 765848 , 766626 , 803459 , 810986 );
Copy
5
78.87 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
383597
395489
396565
407597
411015
417889
419609
423337
425655
429792
447236
447496
454081
455923
456441
460041
460044
466474
470793
474059
481937
489597
494513
497889
499382
504231
506411
510282
520797
521835
522650
524612
524641
524900
527847
530043
534428
536489
543880
551238
552376
559346
565862
572022
572696
577360
577410
579582
581709
583358
588249
590230
606564
614621
620995
624451
625421
642403
677303
693015
716777
723919
726838
741758
765848
766626
803459
810986
]
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 (383597 , 395489 , 396565 , 407597 , 411015 , 417889 , 419609 , 423337 , 425655 , 429792 , 447236 , 447496 , 454081 , 455923 , 456441 , 460041 , 460044 , 466474 , 470793 , 474059 , 481937 , 489597 , 494513 , 497889 , 499382 , 504231 , 506411 , 510282 , 520797 , 521835 , 522650 , 524612 , 524641 , 524900 , 527847 , 530043 , 534428 , 536489 , 543880 , 551238 , 552376 , 559346 , 565862 , 572022 , 572696 , 577360 , 577410 , 579582 , 581709 , 583358 , 588249 , 590230 , 606564 , 614621 , 620995 , 624451 , 625421 , 642403 , 677303 , 693015 , 716777 , 723919 , 726838 , 741758 , 765848 , 766626 , 803459 , 810986 );
Copy