4
13.07 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
515778
514106
496997
467019
699025
556423
626811
634131
590759
593109
724493
752700
625686
806324
447888
456706
415249
457630
463870
468608
420351
521033
494731
518644
485066
490036
529373
540562
501714
517395
558786
678052
677674
560212
586910
598853
641690
459136
470197
460085
513680
484653
408214
453813
574957
631902
595449
610314
521832
534296
519563
467088
583371
576256
610686
427543
520770
678097
698124
811826
617198
564009
549860
606799
543842
623199
591438
548870
578454
527908
]
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 (515778 , 514106 , 496997 , 467019 , 699025 , 556423 , 626811 , 634131 , 590759 , 593109 , 724493 , 752700 , 625686 , 806324 , 447888 , 456706 , 415249 , 457630 , 463870 , 468608 , 420351 , 521033 , 494731 , 518644 , 485066 , 490036 , 529373 , 540562 , 501714 , 517395 , 558786 , 678052 , 677674 , 560212 , 586910 , 598853 , 641690 , 459136 , 470197 , 460085 , 513680 , 484653 , 408214 , 453813 , 574957 , 631902 , 595449 , 610314 , 521832 , 534296 , 519563 , 467088 , 583371 , 576256 , 610686 , 427543 , 520770 , 678097 , 698124 , 811826 , 617198 , 564009 , 549860 , 606799 , 543842 , 623199 , 591438 , 548870 , 578454 , 527908 );
Copy
5
2.21 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
408214
415249
420351
427543
447888
453813
456706
457630
459136
460085
463870
467019
467088
468608
470197
484653
485066
490036
494731
496997
501714
513680
514106
515778
517395
518644
519563
520770
521033
521832
527908
529373
534296
540562
543842
548870
549860
556423
558786
560212
564009
574957
576256
578454
583371
586910
590759
591438
593109
595449
598853
606799
610314
610686
617198
623199
625686
626811
631902
634131
641690
677674
678052
678097
698124
699025
724493
752700
806324
811826
]
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 (408214 , 415249 , 420351 , 427543 , 447888 , 453813 , 456706 , 457630 , 459136 , 460085 , 463870 , 467019 , 467088 , 468608 , 470197 , 484653 , 485066 , 490036 , 494731 , 496997 , 501714 , 513680 , 514106 , 515778 , 517395 , 518644 , 519563 , 520770 , 521033 , 521832 , 527908 , 529373 , 534296 , 540562 , 543842 , 548870 , 549860 , 556423 , 558786 , 560212 , 564009 , 574957 , 576256 , 578454 , 583371 , 586910 , 590759 , 591438 , 593109 , 595449 , 598853 , 606799 , 610314 , 610686 , 617198 , 623199 , 625686 , 626811 , 631902 , 634131 , 641690 , 677674 , 678052 , 678097 , 698124 , 699025 , 724493 , 752700 , 806324 , 811826 );
Copy
6
84.11 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
408214
415249
420351
427543
447888
453813
456706
457630
459136
460085
463870
467019
467088
468608
470197
484653
485066
490036
494731
496997
501714
513680
514106
515778
517395
518644
519563
520770
521033
521832
527908
529373
534296
540562
543842
548870
549860
556423
558786
560212
564009
574957
576256
578454
583371
586910
590759
591438
593109
595449
598853
606799
610314
610686
617198
623199
625686
626811
631902
634131
641690
677674
678052
678097
698124
699025
724493
752700
806324
811826
]
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 (408214 , 415249 , 420351 , 427543 , 447888 , 453813 , 456706 , 457630 , 459136 , 460085 , 463870 , 467019 , 467088 , 468608 , 470197 , 484653 , 485066 , 490036 , 494731 , 496997 , 501714 , 513680 , 514106 , 515778 , 517395 , 518644 , 519563 , 520770 , 521033 , 521832 , 527908 , 529373 , 534296 , 540562 , 543842 , 548870 , 549860 , 556423 , 558786 , 560212 , 564009 , 574957 , 576256 , 578454 , 583371 , 586910 , 590759 , 591438 , 593109 , 595449 , 598853 , 606799 , 610314 , 610686 , 617198 , 623199 , 625686 , 626811 , 631902 , 634131 , 641690 , 677674 , 678052 , 678097 , 698124 , 699025 , 724493 , 752700 , 806324 , 811826 );
Copy