3
15.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
533849
520816
526200
556876
552375
579628
668540
705536
720424
720871
578288
610931
626064
636554
644047
447941
452299
438364
447066
450421
507812
568580
519272
443420
464977
451780
455859
524348
524099
564107
621647
601176
637007
780375
417497
436461
426916
438013
477114
451176
460062
507667
451861
453710
519876
521173
472904
551525
552444
572333
598190
624346
438045
463034
421580
529100
523806
559712
452626
536903
560520
618381
441022
532834
618378
485147
497409
520306
530690
483627
642037
618943
522077
525651
617212
]
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 (533849 , 520816 , 526200 , 556876 , 552375 , 579628 , 668540 , 705536 , 720424 , 720871 , 578288 , 610931 , 626064 , 636554 , 644047 , 447941 , 452299 , 438364 , 447066 , 450421 , 507812 , 568580 , 519272 , 443420 , 464977 , 451780 , 455859 , 524348 , 524099 , 564107 , 621647 , 601176 , 637007 , 780375 , 417497 , 436461 , 426916 , 438013 , 477114 , 451176 , 460062 , 507667 , 451861 , 453710 , 519876 , 521173 , 472904 , 551525 , 552444 , 572333 , 598190 , 624346 , 438045 , 463034 , 421580 , 529100 , 523806 , 559712 , 452626 , 536903 , 560520 , 618381 , 441022 , 532834 , 618378 , 485147 , 497409 , 520306 , 530690 , 483627 , 642037 , 618943 , 522077 , 525651 , 617212 );
Copy
4
2.95 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
417497
421580
426916
436461
438013
438045
438364
441022
443420
447066
447941
450421
451176
451780
451861
452299
452626
453710
455859
460062
463034
464977
472904
477114
483627
485147
497409
507667
507812
519272
519876
520306
520816
521173
522077
523806
524099
524348
525651
526200
529100
530690
532834
533849
536903
551525
552375
552444
556876
559712
560520
564107
568580
572333
578288
579628
598190
601176
610931
617212
618378
618381
618943
621647
624346
626064
636554
637007
642037
644047
668540
705536
720424
720871
780375
]
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 (417497 , 421580 , 426916 , 436461 , 438013 , 438045 , 438364 , 441022 , 443420 , 447066 , 447941 , 450421 , 451176 , 451780 , 451861 , 452299 , 452626 , 453710 , 455859 , 460062 , 463034 , 464977 , 472904 , 477114 , 483627 , 485147 , 497409 , 507667 , 507812 , 519272 , 519876 , 520306 , 520816 , 521173 , 522077 , 523806 , 524099 , 524348 , 525651 , 526200 , 529100 , 530690 , 532834 , 533849 , 536903 , 551525 , 552375 , 552444 , 556876 , 559712 , 560520 , 564107 , 568580 , 572333 , 578288 , 579628 , 598190 , 601176 , 610931 , 617212 , 618378 , 618381 , 618943 , 621647 , 624346 , 626064 , 636554 , 637007 , 642037 , 644047 , 668540 , 705536 , 720424 , 720871 , 780375 );
Copy
5
78.41 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
417497
421580
426916
436461
438013
438045
438364
441022
443420
447066
447941
450421
451176
451780
451861
452299
452626
453710
455859
460062
463034
464977
472904
477114
483627
485147
497409
507667
507812
519272
519876
520306
520816
521173
522077
523806
524099
524348
525651
526200
529100
530690
532834
533849
536903
551525
552375
552444
556876
559712
560520
564107
568580
572333
578288
579628
598190
601176
610931
617212
618378
618381
618943
621647
624346
626064
636554
637007
642037
644047
668540
705536
720424
720871
780375
]
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 (417497 , 421580 , 426916 , 436461 , 438013 , 438045 , 438364 , 441022 , 443420 , 447066 , 447941 , 450421 , 451176 , 451780 , 451861 , 452299 , 452626 , 453710 , 455859 , 460062 , 463034 , 464977 , 472904 , 477114 , 483627 , 485147 , 497409 , 507667 , 507812 , 519272 , 519876 , 520306 , 520816 , 521173 , 522077 , 523806 , 524099 , 524348 , 525651 , 526200 , 529100 , 530690 , 532834 , 533849 , 536903 , 551525 , 552375 , 552444 , 556876 , 559712 , 560520 , 564107 , 568580 , 572333 , 578288 , 579628 , 598190 , 601176 , 610931 , 617212 , 618378 , 618381 , 618943 , 621647 , 624346 , 626064 , 636554 , 637007 , 642037 , 644047 , 668540 , 705536 , 720424 , 720871 , 780375 );
Copy