3
11.46 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
550776
551535
534208
593441
510695
515122
401615
437544
724830
593343
769958
584773
90460
573256
401658
429514
483790
542820
385829
480460
504328
396910
201639
448933
523635
485210
449126
405043
444732
579199
399662
533409
512216
448327
666690
519947
506522
514268
449107
572006
593515
494261
487742
188269
550432
519949
593544
515229
519622
414375
492515
408383
449883
685389
506004
501465
520312
480367
468760
562895
492518
565405
583677
681091
498039
509464
516445
515119
]
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 (550776 , 551535 , 534208 , 593441 , 510695 , 515122 , 401615 , 437544 , 724830 , 593343 , 769958 , 584773 , 90460 , 573256 , 401658 , 429514 , 483790 , 542820 , 385829 , 480460 , 504328 , 396910 , 201639 , 448933 , 523635 , 485210 , 449126 , 405043 , 444732 , 579199 , 399662 , 533409 , 512216 , 448327 , 666690 , 519947 , 506522 , 514268 , 449107 , 572006 , 593515 , 494261 , 487742 , 188269 , 550432 , 519949 , 593544 , 515229 , 519622 , 414375 , 492515 , 408383 , 449883 , 685389 , 506004 , 501465 , 520312 , 480367 , 468760 , 562895 , 492518 , 565405 , 583677 , 681091 , 498039 , 509464 , 516445 , 515119 );
Copy
4
2.59 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
90460
188269
201639
385829
396910
399662
401615
401658
405043
408383
414375
429514
437544
444732
448327
448933
449107
449126
449883
468760
480367
480460
483790
485210
487742
492515
492518
494261
498039
501465
504328
506004
506522
509464
510695
512216
514268
515119
515122
515229
516445
519622
519947
519949
520312
523635
533409
534208
542820
550432
550776
551535
562895
565405
572006
573256
579199
583677
584773
593343
593441
593515
593544
666690
681091
685389
724830
769958
]
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 (90460 , 188269 , 201639 , 385829 , 396910 , 399662 , 401615 , 401658 , 405043 , 408383 , 414375 , 429514 , 437544 , 444732 , 448327 , 448933 , 449107 , 449126 , 449883 , 468760 , 480367 , 480460 , 483790 , 485210 , 487742 , 492515 , 492518 , 494261 , 498039 , 501465 , 504328 , 506004 , 506522 , 509464 , 510695 , 512216 , 514268 , 515119 , 515122 , 515229 , 516445 , 519622 , 519947 , 519949 , 520312 , 523635 , 533409 , 534208 , 542820 , 550432 , 550776 , 551535 , 562895 , 565405 , 572006 , 573256 , 579199 , 583677 , 584773 , 593343 , 593441 , 593515 , 593544 , 666690 , 681091 , 685389 , 724830 , 769958 );
Copy
5
99.27 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
90460
188269
201639
385829
396910
399662
401615
401658
405043
408383
414375
429514
437544
444732
448327
448933
449107
449126
449883
468760
480367
480460
483790
485210
487742
492515
492518
494261
498039
501465
504328
506004
506522
509464
510695
512216
514268
515119
515122
515229
516445
519622
519947
519949
520312
523635
533409
534208
542820
550432
550776
551535
562895
565405
572006
573256
579199
583677
584773
593343
593441
593515
593544
666690
681091
685389
724830
769958
]
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 (90460 , 188269 , 201639 , 385829 , 396910 , 399662 , 401615 , 401658 , 405043 , 408383 , 414375 , 429514 , 437544 , 444732 , 448327 , 448933 , 449107 , 449126 , 449883 , 468760 , 480367 , 480460 , 483790 , 485210 , 487742 , 492515 , 492518 , 494261 , 498039 , 501465 , 504328 , 506004 , 506522 , 509464 , 510695 , 512216 , 514268 , 515119 , 515122 , 515229 , 516445 , 519622 , 519947 , 519949 , 520312 , 523635 , 533409 , 534208 , 542820 , 550432 , 550776 , 551535 , 562895 , 565405 , 572006 , 573256 , 579199 , 583677 , 584773 , 593343 , 593441 , 593515 , 593544 , 666690 , 681091 , 685389 , 724830 , 769958 );
Copy