3
12.07 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
432437
432569
464194
524505
591582
602203
633515
528035
460765
516666
582393
583593
597947
798666
796646
467588
526073
388653
433553
454844
430535
416583
416522
448199
451875
460328
451316
508421
432562
528921
420305
667826
712775
425356
459375
438192
429523
521788
592259
453583
517330
525303
478488
500551
452279
580472
767601
604387
439301
517204
435108
452228
483094
490071
529405
519392
440632
562391
473735
517184
433745
720245
511810
521089
417829
421537
468628
603907
547241
531560
506612
603813
557236
]
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 (432437 , 432569 , 464194 , 524505 , 591582 , 602203 , 633515 , 528035 , 460765 , 516666 , 582393 , 583593 , 597947 , 798666 , 796646 , 467588 , 526073 , 388653 , 433553 , 454844 , 430535 , 416583 , 416522 , 448199 , 451875 , 460328 , 451316 , 508421 , 432562 , 528921 , 420305 , 667826 , 712775 , 425356 , 459375 , 438192 , 429523 , 521788 , 592259 , 453583 , 517330 , 525303 , 478488 , 500551 , 452279 , 580472 , 767601 , 604387 , 439301 , 517204 , 435108 , 452228 , 483094 , 490071 , 529405 , 519392 , 440632 , 562391 , 473735 , 517184 , 433745 , 720245 , 511810 , 521089 , 417829 , 421537 , 468628 , 603907 , 547241 , 531560 , 506612 , 603813 , 557236 );
Copy
4
2.37 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
388653
416522
416583
417829
420305
421537
425356
429523
430535
432437
432562
432569
433553
433745
435108
438192
439301
440632
448199
451316
451875
452228
452279
453583
454844
459375
460328
460765
464194
467588
468628
473735
478488
483094
490071
500551
506612
508421
511810
516666
517184
517204
517330
519392
521089
521788
524505
525303
526073
528035
528921
529405
531560
547241
557236
562391
580472
582393
583593
591582
592259
597947
602203
603813
603907
604387
633515
667826
712775
720245
767601
796646
798666
]
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 (388653 , 416522 , 416583 , 417829 , 420305 , 421537 , 425356 , 429523 , 430535 , 432437 , 432562 , 432569 , 433553 , 433745 , 435108 , 438192 , 439301 , 440632 , 448199 , 451316 , 451875 , 452228 , 452279 , 453583 , 454844 , 459375 , 460328 , 460765 , 464194 , 467588 , 468628 , 473735 , 478488 , 483094 , 490071 , 500551 , 506612 , 508421 , 511810 , 516666 , 517184 , 517204 , 517330 , 519392 , 521089 , 521788 , 524505 , 525303 , 526073 , 528035 , 528921 , 529405 , 531560 , 547241 , 557236 , 562391 , 580472 , 582393 , 583593 , 591582 , 592259 , 597947 , 602203 , 603813 , 603907 , 604387 , 633515 , 667826 , 712775 , 720245 , 767601 , 796646 , 798666 );
Copy
5
135.07 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
388653
416522
416583
417829
420305
421537
425356
429523
430535
432437
432562
432569
433553
433745
435108
438192
439301
440632
448199
451316
451875
452228
452279
453583
454844
459375
460328
460765
464194
467588
468628
473735
478488
483094
490071
500551
506612
508421
511810
516666
517184
517204
517330
519392
521089
521788
524505
525303
526073
528035
528921
529405
531560
547241
557236
562391
580472
582393
583593
591582
592259
597947
602203
603813
603907
604387
633515
667826
712775
720245
767601
796646
798666
]
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 (388653 , 416522 , 416583 , 417829 , 420305 , 421537 , 425356 , 429523 , 430535 , 432437 , 432562 , 432569 , 433553 , 433745 , 435108 , 438192 , 439301 , 440632 , 448199 , 451316 , 451875 , 452228 , 452279 , 453583 , 454844 , 459375 , 460328 , 460765 , 464194 , 467588 , 468628 , 473735 , 478488 , 483094 , 490071 , 500551 , 506612 , 508421 , 511810 , 516666 , 517184 , 517204 , 517330 , 519392 , 521089 , 521788 , 524505 , 525303 , 526073 , 528035 , 528921 , 529405 , 531560 , 547241 , 557236 , 562391 , 580472 , 582393 , 583593 , 591582 , 592259 , 597947 , 602203 , 603813 , 603907 , 604387 , 633515 , 667826 , 712775 , 720245 , 767601 , 796646 , 798666 );
Copy