3
12.24 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
387782
341608
387221
389863
412713
393613
97688
443663
479077
509813
447814
457166
484657
491272
565391
521001
497560
397881
495154
400932
578803
405061
445679
426009
130105
424782
7196
453689
382355
413818
477060
613169
447748
495149
360439
421526
484402
457786
429762
446167
499598
453159
396020
418848
458191
408214
421250
424876
518012
489280
607413
431446
610314
560429
468733
679567
425168
445641
623199
605122
537198
483788
509802
497953
522013
596839
]
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 (387782 , 341608 , 387221 , 389863 , 412713 , 393613 , 97688 , 443663 , 479077 , 509813 , 447814 , 457166 , 484657 , 491272 , 565391 , 521001 , 497560 , 397881 , 495154 , 400932 , 578803 , 405061 , 445679 , 426009 , 130105 , 424782 , 7196 , 453689 , 382355 , 413818 , 477060 , 613169 , 447748 , 495149 , 360439 , 421526 , 484402 , 457786 , 429762 , 446167 , 499598 , 453159 , 396020 , 418848 , 458191 , 408214 , 421250 , 424876 , 518012 , 489280 , 607413 , 431446 , 610314 , 560429 , 468733 , 679567 , 425168 , 445641 , 623199 , 605122 , 537198 , 483788 , 509802 , 497953 , 522013 , 596839 );
Copy
4
2.37 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
7196
97688
130105
341608
360439
382355
387221
387782
389863
393613
396020
397881
400932
405061
408214
412713
413818
418848
421250
421526
424782
424876
425168
426009
429762
431446
443663
445641
445679
446167
447748
447814
453159
453689
457166
457786
458191
468733
477060
479077
483788
484402
484657
489280
491272
495149
495154
497560
497953
499598
509802
509813
518012
521001
522013
537198
560429
565391
578803
596839
605122
607413
610314
613169
623199
679567
]
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 (7196 , 97688 , 130105 , 341608 , 360439 , 382355 , 387221 , 387782 , 389863 , 393613 , 396020 , 397881 , 400932 , 405061 , 408214 , 412713 , 413818 , 418848 , 421250 , 421526 , 424782 , 424876 , 425168 , 426009 , 429762 , 431446 , 443663 , 445641 , 445679 , 446167 , 447748 , 447814 , 453159 , 453689 , 457166 , 457786 , 458191 , 468733 , 477060 , 479077 , 483788 , 484402 , 484657 , 489280 , 491272 , 495149 , 495154 , 497560 , 497953 , 499598 , 509802 , 509813 , 518012 , 521001 , 522013 , 537198 , 560429 , 565391 , 578803 , 596839 , 605122 , 607413 , 610314 , 613169 , 623199 , 679567 );
Copy
5
104.70 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
7196
97688
130105
341608
360439
382355
387221
387782
389863
393613
396020
397881
400932
405061
408214
412713
413818
418848
421250
421526
424782
424876
425168
426009
429762
431446
443663
445641
445679
446167
447748
447814
453159
453689
457166
457786
458191
468733
477060
479077
483788
484402
484657
489280
491272
495149
495154
497560
497953
499598
509802
509813
518012
521001
522013
537198
560429
565391
578803
596839
605122
607413
610314
613169
623199
679567
]
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 (7196 , 97688 , 130105 , 341608 , 360439 , 382355 , 387221 , 387782 , 389863 , 393613 , 396020 , 397881 , 400932 , 405061 , 408214 , 412713 , 413818 , 418848 , 421250 , 421526 , 424782 , 424876 , 425168 , 426009 , 429762 , 431446 , 443663 , 445641 , 445679 , 446167 , 447748 , 447814 , 453159 , 453689 , 457166 , 457786 , 458191 , 468733 , 477060 , 479077 , 483788 , 484402 , 484657 , 489280 , 491272 , 495149 , 495154 , 497560 , 497953 , 499598 , 509802 , 509813 , 518012 , 521001 , 522013 , 537198 , 560429 , 565391 , 578803 , 596839 , 605122 , 607413 , 610314 , 613169 , 623199 , 679567 );
Copy