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
707383
692813
818713
617976
788948
820901
827908
795577
796610
619518
401571
585532
807431
707595
816508
531962
598631
803840
618593
819493
714128
557572
561871
765298
474463
525551
813420
402383
383000
550487
559744
803947
573741
400473
453874
454408
580297
720642
782508
477007
439757
815897
461350
501702
510716
541897
562421
715365
660109
592938
603778
733172
756321
633540
498447
559173
464395
456202
524370
486419
590730
439719
549638
419854
450965
463073
513593
561601
643364
453069
534968
509164
]
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 (707383 , 692813 , 818713 , 617976 , 788948 , 820901 , 827908 , 795577 , 796610 , 619518 , 401571 , 585532 , 807431 , 707595 , 816508 , 531962 , 598631 , 803840 , 618593 , 819493 , 714128 , 557572 , 561871 , 765298 , 474463 , 525551 , 813420 , 402383 , 383000 , 550487 , 559744 , 803947 , 573741 , 400473 , 453874 , 454408 , 580297 , 720642 , 782508 , 477007 , 439757 , 815897 , 461350 , 501702 , 510716 , 541897 , 562421 , 715365 , 660109 , 592938 , 603778 , 733172 , 756321 , 633540 , 498447 , 559173 , 464395 , 456202 , 524370 , 486419 , 590730 , 439719 , 549638 , 419854 , 450965 , 463073 , 513593 , 561601 , 643364 , 453069 , 534968 , 509164 );
Copy
4
2.82 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
383000
400473
401571
402383
419854
439719
439757
450965
453069
453874
454408
456202
461350
463073
464395
474463
477007
486419
498447
501702
509164
510716
513593
524370
525551
531962
534968
541897
549638
550487
557572
559173
559744
561601
561871
562421
573741
580297
585532
590730
592938
598631
603778
617976
618593
619518
633540
643364
660109
692813
707383
707595
714128
715365
720642
733172
756321
765298
782508
788948
795577
796610
803840
803947
807431
813420
815897
816508
818713
819493
820901
827908
]
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 (383000 , 400473 , 401571 , 402383 , 419854 , 439719 , 439757 , 450965 , 453069 , 453874 , 454408 , 456202 , 461350 , 463073 , 464395 , 474463 , 477007 , 486419 , 498447 , 501702 , 509164 , 510716 , 513593 , 524370 , 525551 , 531962 , 534968 , 541897 , 549638 , 550487 , 557572 , 559173 , 559744 , 561601 , 561871 , 562421 , 573741 , 580297 , 585532 , 590730 , 592938 , 598631 , 603778 , 617976 , 618593 , 619518 , 633540 , 643364 , 660109 , 692813 , 707383 , 707595 , 714128 , 715365 , 720642 , 733172 , 756321 , 765298 , 782508 , 788948 , 795577 , 796610 , 803840 , 803947 , 807431 , 813420 , 815897 , 816508 , 818713 , 819493 , 820901 , 827908 );
Copy
5
102.94 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
383000
400473
401571
402383
419854
439719
439757
450965
453069
453874
454408
456202
461350
463073
464395
474463
477007
486419
498447
501702
509164
510716
513593
524370
525551
531962
534968
541897
549638
550487
557572
559173
559744
561601
561871
562421
573741
580297
585532
590730
592938
598631
603778
617976
618593
619518
633540
643364
660109
692813
707383
707595
714128
715365
720642
733172
756321
765298
782508
788948
795577
796610
803840
803947
807431
813420
815897
816508
818713
819493
820901
827908
]
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 (383000 , 400473 , 401571 , 402383 , 419854 , 439719 , 439757 , 450965 , 453069 , 453874 , 454408 , 456202 , 461350 , 463073 , 464395 , 474463 , 477007 , 486419 , 498447 , 501702 , 509164 , 510716 , 513593 , 524370 , 525551 , 531962 , 534968 , 541897 , 549638 , 550487 , 557572 , 559173 , 559744 , 561601 , 561871 , 562421 , 573741 , 580297 , 585532 , 590730 , 592938 , 598631 , 603778 , 617976 , 618593 , 619518 , 633540 , 643364 , 660109 , 692813 , 707383 , 707595 , 714128 , 715365 , 720642 , 733172 , 756321 , 765298 , 782508 , 788948 , 795577 , 796610 , 803840 , 803947 , 807431 , 813420 , 815897 , 816508 , 818713 , 819493 , 820901 , 827908 );
Copy