3
19.19 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
497866
423329
544665
421907
477079
416886
439819
484727
724305
441024
475439
751565
477097
735778
424329
639060
505931
442673
476797
598859
525287
521784
422044
433319
553190
514640
513604
615818
564203
404629
404876
398756
524165
436178
453032
484924
622351
625675
536400
490261
597841
651937
404584
541871
493958
466404
536397
514809
544663
454924
485147
573314
484680
593992
482674
466268
541588
510108
457963
526203
565281
528420
603159
503167
559233
567416
]
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 (497866 , 423329 , 544665 , 421907 , 477079 , 416886 , 439819 , 484727 , 724305 , 441024 , 475439 , 751565 , 477097 , 735778 , 424329 , 639060 , 505931 , 442673 , 476797 , 598859 , 525287 , 521784 , 422044 , 433319 , 553190 , 514640 , 513604 , 615818 , 564203 , 404629 , 404876 , 398756 , 524165 , 436178 , 453032 , 484924 , 622351 , 625675 , 536400 , 490261 , 597841 , 651937 , 404584 , 541871 , 493958 , 466404 , 536397 , 514809 , 544663 , 454924 , 485147 , 573314 , 484680 , 593992 , 482674 , 466268 , 541588 , 510108 , 457963 , 526203 , 565281 , 528420 , 603159 , 503167 , 559233 , 567416 );
Copy
4
2.66 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
398756
404584
404629
404876
416886
421907
422044
423329
424329
433319
436178
439819
441024
442673
453032
454924
457963
466268
466404
475439
476797
477079
477097
482674
484680
484727
484924
485147
490261
493958
497866
503167
505931
510108
513604
514640
514809
521784
524165
525287
526203
528420
536397
536400
541588
541871
544663
544665
553190
559233
564203
565281
567416
573314
593992
597841
598859
603159
615818
622351
625675
639060
651937
724305
735778
751565
]
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 (398756 , 404584 , 404629 , 404876 , 416886 , 421907 , 422044 , 423329 , 424329 , 433319 , 436178 , 439819 , 441024 , 442673 , 453032 , 454924 , 457963 , 466268 , 466404 , 475439 , 476797 , 477079 , 477097 , 482674 , 484680 , 484727 , 484924 , 485147 , 490261 , 493958 , 497866 , 503167 , 505931 , 510108 , 513604 , 514640 , 514809 , 521784 , 524165 , 525287 , 526203 , 528420 , 536397 , 536400 , 541588 , 541871 , 544663 , 544665 , 553190 , 559233 , 564203 , 565281 , 567416 , 573314 , 593992 , 597841 , 598859 , 603159 , 615818 , 622351 , 625675 , 639060 , 651937 , 724305 , 735778 , 751565 );
Copy
5
102.09 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
398756
404584
404629
404876
416886
421907
422044
423329
424329
433319
436178
439819
441024
442673
453032
454924
457963
466268
466404
475439
476797
477079
477097
482674
484680
484727
484924
485147
490261
493958
497866
503167
505931
510108
513604
514640
514809
521784
524165
525287
526203
528420
536397
536400
541588
541871
544663
544665
553190
559233
564203
565281
567416
573314
593992
597841
598859
603159
615818
622351
625675
639060
651937
724305
735778
751565
]
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 (398756 , 404584 , 404629 , 404876 , 416886 , 421907 , 422044 , 423329 , 424329 , 433319 , 436178 , 439819 , 441024 , 442673 , 453032 , 454924 , 457963 , 466268 , 466404 , 475439 , 476797 , 477079 , 477097 , 482674 , 484680 , 484727 , 484924 , 485147 , 490261 , 493958 , 497866 , 503167 , 505931 , 510108 , 513604 , 514640 , 514809 , 521784 , 524165 , 525287 , 526203 , 528420 , 536397 , 536400 , 541588 , 541871 , 544663 , 544665 , 553190 , 559233 , 564203 , 565281 , 567416 , 573314 , 593992 , 597841 , 598859 , 603159 , 615818 , 622351 , 625675 , 639060 , 651937 , 724305 , 735778 , 751565 );
Copy