3
12.49 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
808261
775913
741244
662157
775903
554040
825687
651327
825008
775955
780448
478000
797625
813640
553698
600710
775945
795094
441983
824713
805075
459777
384972
485328
670343
743278
721870
678237
798601
642001
524186
819104
529830
548532
552863
572740
545147
670296
670338
698030
408238
435835
446972
449910
516026
512340
670307
670342
670282
597646
586626
598466
428723
501131
500362
519877
552831
546959
670293
430066
433601
451979
670286
600496
466372
535684
604040
498056
573479
452965
]
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 (808261 , 775913 , 741244 , 662157 , 775903 , 554040 , 825687 , 651327 , 825008 , 775955 , 780448 , 478000 , 797625 , 813640 , 553698 , 600710 , 775945 , 795094 , 441983 , 824713 , 805075 , 459777 , 384972 , 485328 , 670343 , 743278 , 721870 , 678237 , 798601 , 642001 , 524186 , 819104 , 529830 , 548532 , 552863 , 572740 , 545147 , 670296 , 670338 , 698030 , 408238 , 435835 , 446972 , 449910 , 516026 , 512340 , 670307 , 670342 , 670282 , 597646 , 586626 , 598466 , 428723 , 501131 , 500362 , 519877 , 552831 , 546959 , 670293 , 430066 , 433601 , 451979 , 670286 , 600496 , 466372 , 535684 , 604040 , 498056 , 573479 , 452965 );
Copy
4
2.17 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
384972
408238
428723
430066
433601
435835
441983
446972
449910
451979
452965
459777
466372
478000
485328
498056
500362
501131
512340
516026
519877
524186
529830
535684
545147
546959
548532
552831
552863
553698
554040
572740
573479
586626
597646
598466
600496
600710
604040
642001
651327
662157
670282
670286
670293
670296
670307
670338
670342
670343
678237
698030
721870
741244
743278
775903
775913
775945
775955
780448
795094
797625
798601
805075
808261
813640
819104
824713
825008
825687
]
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 (384972 , 408238 , 428723 , 430066 , 433601 , 435835 , 441983 , 446972 , 449910 , 451979 , 452965 , 459777 , 466372 , 478000 , 485328 , 498056 , 500362 , 501131 , 512340 , 516026 , 519877 , 524186 , 529830 , 535684 , 545147 , 546959 , 548532 , 552831 , 552863 , 553698 , 554040 , 572740 , 573479 , 586626 , 597646 , 598466 , 600496 , 600710 , 604040 , 642001 , 651327 , 662157 , 670282 , 670286 , 670293 , 670296 , 670307 , 670338 , 670342 , 670343 , 678237 , 698030 , 721870 , 741244 , 743278 , 775903 , 775913 , 775945 , 775955 , 780448 , 795094 , 797625 , 798601 , 805075 , 808261 , 813640 , 819104 , 824713 , 825008 , 825687 );
Copy
5
86.05 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
384972
408238
428723
430066
433601
435835
441983
446972
449910
451979
452965
459777
466372
478000
485328
498056
500362
501131
512340
516026
519877
524186
529830
535684
545147
546959
548532
552831
552863
553698
554040
572740
573479
586626
597646
598466
600496
600710
604040
642001
651327
662157
670282
670286
670293
670296
670307
670338
670342
670343
678237
698030
721870
741244
743278
775903
775913
775945
775955
780448
795094
797625
798601
805075
808261
813640
819104
824713
825008
825687
]
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 (384972 , 408238 , 428723 , 430066 , 433601 , 435835 , 441983 , 446972 , 449910 , 451979 , 452965 , 459777 , 466372 , 478000 , 485328 , 498056 , 500362 , 501131 , 512340 , 516026 , 519877 , 524186 , 529830 , 535684 , 545147 , 546959 , 548532 , 552831 , 552863 , 553698 , 554040 , 572740 , 573479 , 586626 , 597646 , 598466 , 600496 , 600710 , 604040 , 642001 , 651327 , 662157 , 670282 , 670286 , 670293 , 670296 , 670307 , 670338 , 670342 , 670343 , 678237 , 698030 , 721870 , 741244 , 743278 , 775903 , 775913 , 775945 , 775955 , 780448 , 795094 , 797625 , 798601 , 805075 , 808261 , 813640 , 819104 , 824713 , 825008 , 825687 );
Copy