3
11.59 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
747158
817732
397765
469606
820565
486220
509399
453618
518520
560224
810818
798177
763490
433410
424386
551844
818527
583022
662203
610504
524225
432556
434566
619470
457014
801942
476935
509461
473582
491040
536394
447262
517832
561695
446611
509859
424369
463147
387015
472539
433397
424341
523508
537933
690434
575754
603628
597818
629630
509229
510061
595868
441398
452474
498364
96272
494196
509464
482484
606344
456523
637537
624427
486871
]
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 (747158 , 817732 , 397765 , 469606 , 820565 , 486220 , 509399 , 453618 , 518520 , 560224 , 810818 , 798177 , 763490 , 433410 , 424386 , 551844 , 818527 , 583022 , 662203 , 610504 , 524225 , 432556 , 434566 , 619470 , 457014 , 801942 , 476935 , 509461 , 473582 , 491040 , 536394 , 447262 , 517832 , 561695 , 446611 , 509859 , 424369 , 463147 , 387015 , 472539 , 433397 , 424341 , 523508 , 537933 , 690434 , 575754 , 603628 , 597818 , 629630 , 509229 , 510061 , 595868 , 441398 , 452474 , 498364 , 96272 , 494196 , 509464 , 482484 , 606344 , 456523 , 637537 , 624427 , 486871 );
Copy
4
3.31 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
96272
387015
397765
424341
424369
424386
432556
433397
433410
434566
441398
446611
447262
452474
453618
456523
457014
463147
469606
472539
473582
476935
482484
486220
486871
491040
494196
498364
509229
509399
509461
509464
509859
510061
517832
518520
523508
524225
536394
537933
551844
560224
561695
575754
583022
595868
597818
603628
606344
610504
619470
624427
629630
637537
662203
690434
747158
763490
798177
801942
810818
817732
818527
820565
]
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 (96272 , 387015 , 397765 , 424341 , 424369 , 424386 , 432556 , 433397 , 433410 , 434566 , 441398 , 446611 , 447262 , 452474 , 453618 , 456523 , 457014 , 463147 , 469606 , 472539 , 473582 , 476935 , 482484 , 486220 , 486871 , 491040 , 494196 , 498364 , 509229 , 509399 , 509461 , 509464 , 509859 , 510061 , 517832 , 518520 , 523508 , 524225 , 536394 , 537933 , 551844 , 560224 , 561695 , 575754 , 583022 , 595868 , 597818 , 603628 , 606344 , 610504 , 619470 , 624427 , 629630 , 637537 , 662203 , 690434 , 747158 , 763490 , 798177 , 801942 , 810818 , 817732 , 818527 , 820565 );
Copy
5
86.82 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
96272
387015
397765
424341
424369
424386
432556
433397
433410
434566
441398
446611
447262
452474
453618
456523
457014
463147
469606
472539
473582
476935
482484
486220
486871
491040
494196
498364
509229
509399
509461
509464
509859
510061
517832
518520
523508
524225
536394
537933
551844
560224
561695
575754
583022
595868
597818
603628
606344
610504
619470
624427
629630
637537
662203
690434
747158
763490
798177
801942
810818
817732
818527
820565
]
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 (96272 , 387015 , 397765 , 424341 , 424369 , 424386 , 432556 , 433397 , 433410 , 434566 , 441398 , 446611 , 447262 , 452474 , 453618 , 456523 , 457014 , 463147 , 469606 , 472539 , 473582 , 476935 , 482484 , 486220 , 486871 , 491040 , 494196 , 498364 , 509229 , 509399 , 509461 , 509464 , 509859 , 510061 , 517832 , 518520 , 523508 , 524225 , 536394 , 537933 , 551844 , 560224 , 561695 , 575754 , 583022 , 595868 , 597818 , 603628 , 606344 , 610504 , 619470 , 624427 , 629630 , 637537 , 662203 , 690434 , 747158 , 763490 , 798177 , 801942 , 810818 , 817732 , 818527 , 820565 );
Copy