3
13.64 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
490060
562758
562763
467553
521438
654289
622170
454984
484696
489280
484681
529290
608441
513604
434709
500363
455207
497865
514640
407311
723074
642723
671863
679567
622351
521843
628654
429857
619204
525287
536400
583723
436178
506047
625675
391941
542789
546720
577587
627701
493958
694641
535411
483788
472783
543429
469110
564203
669574
593829
495051
730798
590505
490262
513838
454924
506046
513215
612809
482674
520132
466268
512583
524613
556436
526203
576547
428679
593992
528420
584644
423329
459857
520759
]
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 (490060 , 562758 , 562763 , 467553 , 521438 , 654289 , 622170 , 454984 , 484696 , 489280 , 484681 , 529290 , 608441 , 513604 , 434709 , 500363 , 455207 , 497865 , 514640 , 407311 , 723074 , 642723 , 671863 , 679567 , 622351 , 521843 , 628654 , 429857 , 619204 , 525287 , 536400 , 583723 , 436178 , 506047 , 625675 , 391941 , 542789 , 546720 , 577587 , 627701 , 493958 , 694641 , 535411 , 483788 , 472783 , 543429 , 469110 , 564203 , 669574 , 593829 , 495051 , 730798 , 590505 , 490262 , 513838 , 454924 , 506046 , 513215 , 612809 , 482674 , 520132 , 466268 , 512583 , 524613 , 556436 , 526203 , 576547 , 428679 , 593992 , 528420 , 584644 , 423329 , 459857 , 520759 );
Copy
4
1.97 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
391941
407311
423329
428679
429857
434709
436178
454924
454984
455207
459857
466268
467553
469110
472783
482674
483788
484681
484696
489280
490060
490262
493958
495051
497865
500363
506046
506047
512583
513215
513604
513838
514640
520132
520759
521438
521843
524613
525287
526203
528420
529290
535411
536400
542789
543429
546720
556436
562758
562763
564203
576547
577587
583723
584644
590505
593829
593992
608441
612809
619204
622170
622351
625675
627701
628654
642723
654289
669574
671863
679567
694641
723074
730798
]
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 (391941 , 407311 , 423329 , 428679 , 429857 , 434709 , 436178 , 454924 , 454984 , 455207 , 459857 , 466268 , 467553 , 469110 , 472783 , 482674 , 483788 , 484681 , 484696 , 489280 , 490060 , 490262 , 493958 , 495051 , 497865 , 500363 , 506046 , 506047 , 512583 , 513215 , 513604 , 513838 , 514640 , 520132 , 520759 , 521438 , 521843 , 524613 , 525287 , 526203 , 528420 , 529290 , 535411 , 536400 , 542789 , 543429 , 546720 , 556436 , 562758 , 562763 , 564203 , 576547 , 577587 , 583723 , 584644 , 590505 , 593829 , 593992 , 608441 , 612809 , 619204 , 622170 , 622351 , 625675 , 627701 , 628654 , 642723 , 654289 , 669574 , 671863 , 679567 , 694641 , 723074 , 730798 );
Copy
5
76.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
391941
407311
423329
428679
429857
434709
436178
454924
454984
455207
459857
466268
467553
469110
472783
482674
483788
484681
484696
489280
490060
490262
493958
495051
497865
500363
506046
506047
512583
513215
513604
513838
514640
520132
520759
521438
521843
524613
525287
526203
528420
529290
535411
536400
542789
543429
546720
556436
562758
562763
564203
576547
577587
583723
584644
590505
593829
593992
608441
612809
619204
622170
622351
625675
627701
628654
642723
654289
669574
671863
679567
694641
723074
730798
]
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 (391941 , 407311 , 423329 , 428679 , 429857 , 434709 , 436178 , 454924 , 454984 , 455207 , 459857 , 466268 , 467553 , 469110 , 472783 , 482674 , 483788 , 484681 , 484696 , 489280 , 490060 , 490262 , 493958 , 495051 , 497865 , 500363 , 506046 , 506047 , 512583 , 513215 , 513604 , 513838 , 514640 , 520132 , 520759 , 521438 , 521843 , 524613 , 525287 , 526203 , 528420 , 529290 , 535411 , 536400 , 542789 , 543429 , 546720 , 556436 , 562758 , 562763 , 564203 , 576547 , 577587 , 583723 , 584644 , 590505 , 593829 , 593992 , 608441 , 612809 , 619204 , 622170 , 622351 , 625675 , 627701 , 628654 , 642723 , 654289 , 669574 , 671863 , 679567 , 694641 , 723074 , 730798 );
Copy