3
13.90 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
455207
484696
582821
529290
691409
733071
513126
509507
603933
407311
622170
619204
748326
429857
564203
796430
525688
622351
536400
679567
583723
506047
618561
521832
546720
493958
542789
577587
627701
391941
535411
668559
472783
79082
521843
465336
467553
518521
755457
543605
593829
469110
495051
588286
730798
513838
544663
590505
490262
770926
556436
524613
576547
612809
626154
520132
543374
575661
466268
506046
520839
600030
748349
584644
423329
520759
459857
]
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 (455207 , 484696 , 582821 , 529290 , 691409 , 733071 , 513126 , 509507 , 603933 , 407311 , 622170 , 619204 , 748326 , 429857 , 564203 , 796430 , 525688 , 622351 , 536400 , 679567 , 583723 , 506047 , 618561 , 521832 , 546720 , 493958 , 542789 , 577587 , 627701 , 391941 , 535411 , 668559 , 472783 , 79082 , 521843 , 465336 , 467553 , 518521 , 755457 , 543605 , 593829 , 469110 , 495051 , 588286 , 730798 , 513838 , 544663 , 590505 , 490262 , 770926 , 556436 , 524613 , 576547 , 612809 , 626154 , 520132 , 543374 , 575661 , 466268 , 506046 , 520839 , 600030 , 748349 , 584644 , 423329 , 520759 , 459857 );
Copy
4
3.29 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
79082
391941
407311
423329
429857
455207
459857
465336
466268
467553
469110
472783
484696
490262
493958
495051
506046
506047
509507
513126
513838
518521
520132
520759
520839
521832
521843
524613
525688
529290
535411
536400
542789
543374
543605
544663
546720
556436
564203
575661
576547
577587
582821
583723
584644
588286
590505
593829
600030
603933
612809
618561
619204
622170
622351
626154
627701
668559
679567
691409
730798
733071
748326
748349
755457
770926
796430
]
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 (79082 , 391941 , 407311 , 423329 , 429857 , 455207 , 459857 , 465336 , 466268 , 467553 , 469110 , 472783 , 484696 , 490262 , 493958 , 495051 , 506046 , 506047 , 509507 , 513126 , 513838 , 518521 , 520132 , 520759 , 520839 , 521832 , 521843 , 524613 , 525688 , 529290 , 535411 , 536400 , 542789 , 543374 , 543605 , 544663 , 546720 , 556436 , 564203 , 575661 , 576547 , 577587 , 582821 , 583723 , 584644 , 588286 , 590505 , 593829 , 600030 , 603933 , 612809 , 618561 , 619204 , 622170 , 622351 , 626154 , 627701 , 668559 , 679567 , 691409 , 730798 , 733071 , 748326 , 748349 , 755457 , 770926 , 796430 );
Copy
5
97.64 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
79082
391941
407311
423329
429857
455207
459857
465336
466268
467553
469110
472783
484696
490262
493958
495051
506046
506047
509507
513126
513838
518521
520132
520759
520839
521832
521843
524613
525688
529290
535411
536400
542789
543374
543605
544663
546720
556436
564203
575661
576547
577587
582821
583723
584644
588286
590505
593829
600030
603933
612809
618561
619204
622170
622351
626154
627701
668559
679567
691409
730798
733071
748326
748349
755457
770926
796430
]
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 (79082 , 391941 , 407311 , 423329 , 429857 , 455207 , 459857 , 465336 , 466268 , 467553 , 469110 , 472783 , 484696 , 490262 , 493958 , 495051 , 506046 , 506047 , 509507 , 513126 , 513838 , 518521 , 520132 , 520759 , 520839 , 521832 , 521843 , 524613 , 525688 , 529290 , 535411 , 536400 , 542789 , 543374 , 543605 , 544663 , 546720 , 556436 , 564203 , 575661 , 576547 , 577587 , 582821 , 583723 , 584644 , 588286 , 590505 , 593829 , 600030 , 603933 , 612809 , 618561 , 619204 , 622170 , 622351 , 626154 , 627701 , 668559 , 679567 , 691409 , 730798 , 733071 , 748326 , 748349 , 755457 , 770926 , 796430 );
Copy