3
9.34 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
630891
572581
710625
696268
549337
707287
736957
549323
696272
744262
719094
722714
648963
671760
613345
706899
546779
576687
750061
546747
533555
573104
550332
630309
639189
540698
575788
677366
50215
813862
525704
661693
559462
605345
755403
530929
547232
720096
819860
529472
544455
415524
581401
679380
497574
524951
583871
766570
581273
424043
587202
628321
800895
621691
636819
576639
665990
493015
523454
527568
424255
486304
423633
566243
659025
]
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 (630891 , 572581 , 710625 , 696268 , 549337 , 707287 , 736957 , 549323 , 696272 , 744262 , 719094 , 722714 , 648963 , 671760 , 613345 , 706899 , 546779 , 576687 , 750061 , 546747 , 533555 , 573104 , 550332 , 630309 , 639189 , 540698 , 575788 , 677366 , 50215 , 813862 , 525704 , 661693 , 559462 , 605345 , 755403 , 530929 , 547232 , 720096 , 819860 , 529472 , 544455 , 415524 , 581401 , 679380 , 497574 , 524951 , 583871 , 766570 , 581273 , 424043 , 587202 , 628321 , 800895 , 621691 , 636819 , 576639 , 665990 , 493015 , 523454 , 527568 , 424255 , 486304 , 423633 , 566243 , 659025 );
Copy
4
2.70 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
50215
415524
423633
424043
424255
486304
493015
497574
523454
524951
525704
527568
529472
530929
533555
540698
544455
546747
546779
547232
549323
549337
550332
559462
566243
572581
573104
575788
576639
576687
581273
581401
583871
587202
605345
613345
621691
628321
630309
630891
636819
639189
648963
659025
661693
665990
671760
677366
679380
696268
696272
706899
707287
710625
719094
720096
722714
736957
744262
750061
755403
766570
800895
813862
819860
]
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 (50215 , 415524 , 423633 , 424043 , 424255 , 486304 , 493015 , 497574 , 523454 , 524951 , 525704 , 527568 , 529472 , 530929 , 533555 , 540698 , 544455 , 546747 , 546779 , 547232 , 549323 , 549337 , 550332 , 559462 , 566243 , 572581 , 573104 , 575788 , 576639 , 576687 , 581273 , 581401 , 583871 , 587202 , 605345 , 613345 , 621691 , 628321 , 630309 , 630891 , 636819 , 639189 , 648963 , 659025 , 661693 , 665990 , 671760 , 677366 , 679380 , 696268 , 696272 , 706899 , 707287 , 710625 , 719094 , 720096 , 722714 , 736957 , 744262 , 750061 , 755403 , 766570 , 800895 , 813862 , 819860 );
Copy
5
86.89 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
50215
415524
423633
424043
424255
486304
493015
497574
523454
524951
525704
527568
529472
530929
533555
540698
544455
546747
546779
547232
549323
549337
550332
559462
566243
572581
573104
575788
576639
576687
581273
581401
583871
587202
605345
613345
621691
628321
630309
630891
636819
639189
648963
659025
661693
665990
671760
677366
679380
696268
696272
706899
707287
710625
719094
720096
722714
736957
744262
750061
755403
766570
800895
813862
819860
]
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 (50215 , 415524 , 423633 , 424043 , 424255 , 486304 , 493015 , 497574 , 523454 , 524951 , 525704 , 527568 , 529472 , 530929 , 533555 , 540698 , 544455 , 546747 , 546779 , 547232 , 549323 , 549337 , 550332 , 559462 , 566243 , 572581 , 573104 , 575788 , 576639 , 576687 , 581273 , 581401 , 583871 , 587202 , 605345 , 613345 , 621691 , 628321 , 630309 , 630891 , 636819 , 639189 , 648963 , 659025 , 661693 , 665990 , 671760 , 677366 , 679380 , 696268 , 696272 , 706899 , 707287 , 710625 , 719094 , 720096 , 722714 , 736957 , 744262 , 750061 , 755403 , 766570 , 800895 , 813862 , 819860 );
Copy