3
13.22 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
784285
395864
797734
565164
770938
524755
801963
756383
615554
800630
565165
687123
523537
527998
818438
397304
760915
825304
397242
395724
402385
820070
820118
466690
401333
395861
395746
395844
396656
818426
395819
472641
419873
459803
395842
395863
820767
561415
395661
533958
486702
505394
519548
395676
428407
401114
395596
395714
395846
401307
519569
395970
459807
554780
475410
395738
519549
524530
459804
419880
395818
512094
527416
605521
514070
624226
]
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 (784285 , 395864 , 797734 , 565164 , 770938 , 524755 , 801963 , 756383 , 615554 , 800630 , 565165 , 687123 , 523537 , 527998 , 818438 , 397304 , 760915 , 825304 , 397242 , 395724 , 402385 , 820070 , 820118 , 466690 , 401333 , 395861 , 395746 , 395844 , 396656 , 818426 , 395819 , 472641 , 419873 , 459803 , 395842 , 395863 , 820767 , 561415 , 395661 , 533958 , 486702 , 505394 , 519548 , 395676 , 428407 , 401114 , 395596 , 395714 , 395846 , 401307 , 519569 , 395970 , 459807 , 554780 , 475410 , 395738 , 519549 , 524530 , 459804 , 419880 , 395818 , 512094 , 527416 , 605521 , 514070 , 624226 );
Copy
4
3.42 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
395596
395661
395676
395714
395724
395738
395746
395818
395819
395842
395844
395846
395861
395863
395864
395970
396656
397242
397304
401114
401307
401333
402385
419873
419880
428407
459803
459804
459807
466690
472641
475410
486702
505394
512094
514070
519548
519549
519569
523537
524530
524755
527416
527998
533958
554780
561415
565164
565165
605521
615554
624226
687123
756383
760915
770938
784285
797734
800630
801963
818426
818438
820070
820118
820767
825304
]
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 (395596 , 395661 , 395676 , 395714 , 395724 , 395738 , 395746 , 395818 , 395819 , 395842 , 395844 , 395846 , 395861 , 395863 , 395864 , 395970 , 396656 , 397242 , 397304 , 401114 , 401307 , 401333 , 402385 , 419873 , 419880 , 428407 , 459803 , 459804 , 459807 , 466690 , 472641 , 475410 , 486702 , 505394 , 512094 , 514070 , 519548 , 519549 , 519569 , 523537 , 524530 , 524755 , 527416 , 527998 , 533958 , 554780 , 561415 , 565164 , 565165 , 605521 , 615554 , 624226 , 687123 , 756383 , 760915 , 770938 , 784285 , 797734 , 800630 , 801963 , 818426 , 818438 , 820070 , 820118 , 820767 , 825304 );
Copy
5
98.18 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
395596
395661
395676
395714
395724
395738
395746
395818
395819
395842
395844
395846
395861
395863
395864
395970
396656
397242
397304
401114
401307
401333
402385
419873
419880
428407
459803
459804
459807
466690
472641
475410
486702
505394
512094
514070
519548
519549
519569
523537
524530
524755
527416
527998
533958
554780
561415
565164
565165
605521
615554
624226
687123
756383
760915
770938
784285
797734
800630
801963
818426
818438
820070
820118
820767
825304
]
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 (395596 , 395661 , 395676 , 395714 , 395724 , 395738 , 395746 , 395818 , 395819 , 395842 , 395844 , 395846 , 395861 , 395863 , 395864 , 395970 , 396656 , 397242 , 397304 , 401114 , 401307 , 401333 , 402385 , 419873 , 419880 , 428407 , 459803 , 459804 , 459807 , 466690 , 472641 , 475410 , 486702 , 505394 , 512094 , 514070 , 519548 , 519549 , 519569 , 523537 , 524530 , 524755 , 527416 , 527998 , 533958 , 554780 , 561415 , 565164 , 565165 , 605521 , 615554 , 624226 , 687123 , 756383 , 760915 , 770938 , 784285 , 797734 , 800630 , 801963 , 818426 , 818438 , 820070 , 820118 , 820767 , 825304 );
Copy