3
12.74 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
807521
417725
399088
453126
515965
512939
656938
604652
784263
778867
745142
630399
615275
765359
800523
739294
401189
806192
477553
761490
501039
648514
787615
417721
550366
462273
496869
712789
809493
512935
485457
582514
571221
738641
456267
709804
417723
417746
417734
417739
619478
462285
585086
512877
662556
481421
484057
450861
444281
475910
581013
600302
417735
506009
529185
609221
408563
422511
417324
513182
468919
422626
701348
541540
637413
502315
605318
588286
]
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 (807521 , 417725 , 399088 , 453126 , 515965 , 512939 , 656938 , 604652 , 784263 , 778867 , 745142 , 630399 , 615275 , 765359 , 800523 , 739294 , 401189 , 806192 , 477553 , 761490 , 501039 , 648514 , 787615 , 417721 , 550366 , 462273 , 496869 , 712789 , 809493 , 512935 , 485457 , 582514 , 571221 , 738641 , 456267 , 709804 , 417723 , 417746 , 417734 , 417739 , 619478 , 462285 , 585086 , 512877 , 662556 , 481421 , 484057 , 450861 , 444281 , 475910 , 581013 , 600302 , 417735 , 506009 , 529185 , 609221 , 408563 , 422511 , 417324 , 513182 , 468919 , 422626 , 701348 , 541540 , 637413 , 502315 , 605318 , 588286 );
Copy
4
2.69 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
399088
401189
408563
417324
417721
417723
417725
417734
417735
417739
417746
422511
422626
444281
450861
453126
456267
462273
462285
468919
475910
477553
481421
484057
485457
496869
501039
502315
506009
512877
512935
512939
513182
515965
529185
541540
550366
571221
581013
582514
585086
588286
600302
604652
605318
609221
615275
619478
630399
637413
648514
656938
662556
701348
709804
712789
738641
739294
745142
761490
765359
778867
784263
787615
800523
806192
807521
809493
]
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 (399088 , 401189 , 408563 , 417324 , 417721 , 417723 , 417725 , 417734 , 417735 , 417739 , 417746 , 422511 , 422626 , 444281 , 450861 , 453126 , 456267 , 462273 , 462285 , 468919 , 475910 , 477553 , 481421 , 484057 , 485457 , 496869 , 501039 , 502315 , 506009 , 512877 , 512935 , 512939 , 513182 , 515965 , 529185 , 541540 , 550366 , 571221 , 581013 , 582514 , 585086 , 588286 , 600302 , 604652 , 605318 , 609221 , 615275 , 619478 , 630399 , 637413 , 648514 , 656938 , 662556 , 701348 , 709804 , 712789 , 738641 , 739294 , 745142 , 761490 , 765359 , 778867 , 784263 , 787615 , 800523 , 806192 , 807521 , 809493 );
Copy
5
137.83 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
399088
401189
408563
417324
417721
417723
417725
417734
417735
417739
417746
422511
422626
444281
450861
453126
456267
462273
462285
468919
475910
477553
481421
484057
485457
496869
501039
502315
506009
512877
512935
512939
513182
515965
529185
541540
550366
571221
581013
582514
585086
588286
600302
604652
605318
609221
615275
619478
630399
637413
648514
656938
662556
701348
709804
712789
738641
739294
745142
761490
765359
778867
784263
787615
800523
806192
807521
809493
]
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 (399088 , 401189 , 408563 , 417324 , 417721 , 417723 , 417725 , 417734 , 417735 , 417739 , 417746 , 422511 , 422626 , 444281 , 450861 , 453126 , 456267 , 462273 , 462285 , 468919 , 475910 , 477553 , 481421 , 484057 , 485457 , 496869 , 501039 , 502315 , 506009 , 512877 , 512935 , 512939 , 513182 , 515965 , 529185 , 541540 , 550366 , 571221 , 581013 , 582514 , 585086 , 588286 , 600302 , 604652 , 605318 , 609221 , 615275 , 619478 , 630399 , 637413 , 648514 , 656938 , 662556 , 701348 , 709804 , 712789 , 738641 , 739294 , 745142 , 761490 , 765359 , 778867 , 784263 , 787615 , 800523 , 806192 , 807521 , 809493 );
Copy