3
11.00 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
425999
443085
511033
473950
472955
535445
518336
448069
488380
528607
439586
449613
523762
440893
396818
450812
515575
542090
590622
805331
736137
397901
505748
512023
470506
484821
403588
428895
626885
492705
464702
549754
423783
456034
517129
650664
645920
649211
554399
732905
730091
627095
466109
440956
439570
528143
489940
507616
556009
620754
582342
594549
407524
431759
472958
439560
439710
493961
461061
601848
643933
462840
517833
520870
528931
528452
602803
546761
519023
675471
529162
451866
493300
]
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 (425999 , 443085 , 511033 , 473950 , 472955 , 535445 , 518336 , 448069 , 488380 , 528607 , 439586 , 449613 , 523762 , 440893 , 396818 , 450812 , 515575 , 542090 , 590622 , 805331 , 736137 , 397901 , 505748 , 512023 , 470506 , 484821 , 403588 , 428895 , 626885 , 492705 , 464702 , 549754 , 423783 , 456034 , 517129 , 650664 , 645920 , 649211 , 554399 , 732905 , 730091 , 627095 , 466109 , 440956 , 439570 , 528143 , 489940 , 507616 , 556009 , 620754 , 582342 , 594549 , 407524 , 431759 , 472958 , 439560 , 439710 , 493961 , 461061 , 601848 , 643933 , 462840 , 517833 , 520870 , 528931 , 528452 , 602803 , 546761 , 519023 , 675471 , 529162 , 451866 , 493300 );
Copy
4
2.46 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
396818
397901
403588
407524
423783
425999
428895
431759
439560
439570
439586
439710
440893
440956
443085
448069
449613
450812
451866
456034
461061
462840
464702
466109
470506
472955
472958
473950
484821
488380
489940
492705
493300
493961
505748
507616
511033
512023
515575
517129
517833
518336
519023
520870
523762
528143
528452
528607
528931
529162
535445
542090
546761
549754
554399
556009
582342
590622
594549
601848
602803
620754
626885
627095
643933
645920
649211
650664
675471
730091
732905
736137
805331
]
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 (396818 , 397901 , 403588 , 407524 , 423783 , 425999 , 428895 , 431759 , 439560 , 439570 , 439586 , 439710 , 440893 , 440956 , 443085 , 448069 , 449613 , 450812 , 451866 , 456034 , 461061 , 462840 , 464702 , 466109 , 470506 , 472955 , 472958 , 473950 , 484821 , 488380 , 489940 , 492705 , 493300 , 493961 , 505748 , 507616 , 511033 , 512023 , 515575 , 517129 , 517833 , 518336 , 519023 , 520870 , 523762 , 528143 , 528452 , 528607 , 528931 , 529162 , 535445 , 542090 , 546761 , 549754 , 554399 , 556009 , 582342 , 590622 , 594549 , 601848 , 602803 , 620754 , 626885 , 627095 , 643933 , 645920 , 649211 , 650664 , 675471 , 730091 , 732905 , 736137 , 805331 );
Copy
5
122.00 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
396818
397901
403588
407524
423783
425999
428895
431759
439560
439570
439586
439710
440893
440956
443085
448069
449613
450812
451866
456034
461061
462840
464702
466109
470506
472955
472958
473950
484821
488380
489940
492705
493300
493961
505748
507616
511033
512023
515575
517129
517833
518336
519023
520870
523762
528143
528452
528607
528931
529162
535445
542090
546761
549754
554399
556009
582342
590622
594549
601848
602803
620754
626885
627095
643933
645920
649211
650664
675471
730091
732905
736137
805331
]
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 (396818 , 397901 , 403588 , 407524 , 423783 , 425999 , 428895 , 431759 , 439560 , 439570 , 439586 , 439710 , 440893 , 440956 , 443085 , 448069 , 449613 , 450812 , 451866 , 456034 , 461061 , 462840 , 464702 , 466109 , 470506 , 472955 , 472958 , 473950 , 484821 , 488380 , 489940 , 492705 , 493300 , 493961 , 505748 , 507616 , 511033 , 512023 , 515575 , 517129 , 517833 , 518336 , 519023 , 520870 , 523762 , 528143 , 528452 , 528607 , 528931 , 529162 , 535445 , 542090 , 546761 , 549754 , 554399 , 556009 , 582342 , 590622 , 594549 , 601848 , 602803 , 620754 , 626885 , 627095 , 643933 , 645920 , 649211 , 650664 , 675471 , 730091 , 732905 , 736137 , 805331 );
Copy