3
13.39 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
724241
541336
571445
605345
702061
525462
538945
567403
565446
706611
708422
605342
587472
644641
772554
466969
538895
543495
722211
556795
562963
566690
595735
589817
644379
601695
603187
622975
563190
576695
567400
573905
561353
571239
576632
645999
567408
620120
592446
619466
577356
801896
577362
546614
670107
628315
560387
567429
622381
581301
550336
622331
491238
571244
587833
600069
622831
542954
558003
563388
576717
652542
562831
603310
542187
542199
475677
483474
620223
]
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 (724241 , 541336 , 571445 , 605345 , 702061 , 525462 , 538945 , 567403 , 565446 , 706611 , 708422 , 605342 , 587472 , 644641 , 772554 , 466969 , 538895 , 543495 , 722211 , 556795 , 562963 , 566690 , 595735 , 589817 , 644379 , 601695 , 603187 , 622975 , 563190 , 576695 , 567400 , 573905 , 561353 , 571239 , 576632 , 645999 , 567408 , 620120 , 592446 , 619466 , 577356 , 801896 , 577362 , 546614 , 670107 , 628315 , 560387 , 567429 , 622381 , 581301 , 550336 , 622331 , 491238 , 571244 , 587833 , 600069 , 622831 , 542954 , 558003 , 563388 , 576717 , 652542 , 562831 , 603310 , 542187 , 542199 , 475677 , 483474 , 620223 );
Copy
4
3.45 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
466969
475677
483474
491238
525462
538895
538945
541336
542187
542199
542954
543495
546614
550336
556795
558003
560387
561353
562831
562963
563190
563388
565446
566690
567400
567403
567408
567429
571239
571244
571445
573905
576632
576695
576717
577356
577362
581301
587472
587833
589817
592446
595735
600069
601695
603187
603310
605342
605345
619466
620120
620223
622331
622381
622831
622975
628315
644379
644641
645999
652542
670107
702061
706611
708422
722211
724241
772554
801896
]
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 (466969 , 475677 , 483474 , 491238 , 525462 , 538895 , 538945 , 541336 , 542187 , 542199 , 542954 , 543495 , 546614 , 550336 , 556795 , 558003 , 560387 , 561353 , 562831 , 562963 , 563190 , 563388 , 565446 , 566690 , 567400 , 567403 , 567408 , 567429 , 571239 , 571244 , 571445 , 573905 , 576632 , 576695 , 576717 , 577356 , 577362 , 581301 , 587472 , 587833 , 589817 , 592446 , 595735 , 600069 , 601695 , 603187 , 603310 , 605342 , 605345 , 619466 , 620120 , 620223 , 622331 , 622381 , 622831 , 622975 , 628315 , 644379 , 644641 , 645999 , 652542 , 670107 , 702061 , 706611 , 708422 , 722211 , 724241 , 772554 , 801896 );
Copy
5
104.26 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
466969
475677
483474
491238
525462
538895
538945
541336
542187
542199
542954
543495
546614
550336
556795
558003
560387
561353
562831
562963
563190
563388
565446
566690
567400
567403
567408
567429
571239
571244
571445
573905
576632
576695
576717
577356
577362
581301
587472
587833
589817
592446
595735
600069
601695
603187
603310
605342
605345
619466
620120
620223
622331
622381
622831
622975
628315
644379
644641
645999
652542
670107
702061
706611
708422
722211
724241
772554
801896
]
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 (466969 , 475677 , 483474 , 491238 , 525462 , 538895 , 538945 , 541336 , 542187 , 542199 , 542954 , 543495 , 546614 , 550336 , 556795 , 558003 , 560387 , 561353 , 562831 , 562963 , 563190 , 563388 , 565446 , 566690 , 567400 , 567403 , 567408 , 567429 , 571239 , 571244 , 571445 , 573905 , 576632 , 576695 , 576717 , 577356 , 577362 , 581301 , 587472 , 587833 , 589817 , 592446 , 595735 , 600069 , 601695 , 603187 , 603310 , 605342 , 605345 , 619466 , 620120 , 620223 , 622331 , 622381 , 622831 , 622975 , 628315 , 644379 , 644641 , 645999 , 652542 , 670107 , 702061 , 706611 , 708422 , 722211 , 724241 , 772554 , 801896 );
Copy