3
14.70 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
311235
500450
541626
521200
521207
523032
460980
468173
517739
523634
491977
506014
457389
488954
533585
555114
527409
502882
519304
482358
472396
490684
579614
523462
512607
441110
439593
470774
446633
521243
506081
561515
475180
494231
468906
495112
560378
478829
491463
479082
463107
481359
463094
472743
526047
499112
512749
467493
491407
490933
543845
467507
467508
492128
509164
514689
563441
456384
502277
535013
543842
616996
504841
582468
492607
543881
]
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 (311235 , 500450 , 541626 , 521200 , 521207 , 523032 , 460980 , 468173 , 517739 , 523634 , 491977 , 506014 , 457389 , 488954 , 533585 , 555114 , 527409 , 502882 , 519304 , 482358 , 472396 , 490684 , 579614 , 523462 , 512607 , 441110 , 439593 , 470774 , 446633 , 521243 , 506081 , 561515 , 475180 , 494231 , 468906 , 495112 , 560378 , 478829 , 491463 , 479082 , 463107 , 481359 , 463094 , 472743 , 526047 , 499112 , 512749 , 467493 , 491407 , 490933 , 543845 , 467507 , 467508 , 492128 , 509164 , 514689 , 563441 , 456384 , 502277 , 535013 , 543842 , 616996 , 504841 , 582468 , 492607 , 543881 );
Copy
4
2.35 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
311235
439593
441110
446633
456384
457389
460980
463094
463107
467493
467507
467508
468173
468906
470774
472396
472743
475180
478829
479082
481359
482358
488954
490684
490933
491407
491463
491977
492128
492607
494231
495112
499112
500450
502277
502882
504841
506014
506081
509164
512607
512749
514689
517739
519304
521200
521207
521243
523032
523462
523634
526047
527409
533585
535013
541626
543842
543845
543881
555114
560378
561515
563441
579614
582468
616996
]
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 (311235 , 439593 , 441110 , 446633 , 456384 , 457389 , 460980 , 463094 , 463107 , 467493 , 467507 , 467508 , 468173 , 468906 , 470774 , 472396 , 472743 , 475180 , 478829 , 479082 , 481359 , 482358 , 488954 , 490684 , 490933 , 491407 , 491463 , 491977 , 492128 , 492607 , 494231 , 495112 , 499112 , 500450 , 502277 , 502882 , 504841 , 506014 , 506081 , 509164 , 512607 , 512749 , 514689 , 517739 , 519304 , 521200 , 521207 , 521243 , 523032 , 523462 , 523634 , 526047 , 527409 , 533585 , 535013 , 541626 , 543842 , 543845 , 543881 , 555114 , 560378 , 561515 , 563441 , 579614 , 582468 , 616996 );
Copy
5
69.65 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
311235
439593
441110
446633
456384
457389
460980
463094
463107
467493
467507
467508
468173
468906
470774
472396
472743
475180
478829
479082
481359
482358
488954
490684
490933
491407
491463
491977
492128
492607
494231
495112
499112
500450
502277
502882
504841
506014
506081
509164
512607
512749
514689
517739
519304
521200
521207
521243
523032
523462
523634
526047
527409
533585
535013
541626
543842
543845
543881
555114
560378
561515
563441
579614
582468
616996
]
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 (311235 , 439593 , 441110 , 446633 , 456384 , 457389 , 460980 , 463094 , 463107 , 467493 , 467507 , 467508 , 468173 , 468906 , 470774 , 472396 , 472743 , 475180 , 478829 , 479082 , 481359 , 482358 , 488954 , 490684 , 490933 , 491407 , 491463 , 491977 , 492128 , 492607 , 494231 , 495112 , 499112 , 500450 , 502277 , 502882 , 504841 , 506014 , 506081 , 509164 , 512607 , 512749 , 514689 , 517739 , 519304 , 521200 , 521207 , 521243 , 523032 , 523462 , 523634 , 526047 , 527409 , 533585 , 535013 , 541626 , 543842 , 543845 , 543881 , 555114 , 560378 , 561515 , 563441 , 579614 , 582468 , 616996 );
Copy