3
12.33 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
517924
599725
520388
723164
431558
499500
581532
540930
492247
580792
700588
692455
610012
598998
623972
448126
526489
661054
456660
486776
520270
491670
430331
549783
598228
543344
406525
469159
569385
550416
684244
592253
728820
480972
502566
464451
516659
529177
519542
814175
583425
621737
508228
517028
567206
610203
626064
634867
463096
606717
511449
518210
528557
564494
438836
602829
605467
505792
516347
517320
661925
540626
522926
603759
459527
520793
575722
801907
503772
591378
599859
516682
619005
512741
615429
]
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 (517924 , 599725 , 520388 , 723164 , 431558 , 499500 , 581532 , 540930 , 492247 , 580792 , 700588 , 692455 , 610012 , 598998 , 623972 , 448126 , 526489 , 661054 , 456660 , 486776 , 520270 , 491670 , 430331 , 549783 , 598228 , 543344 , 406525 , 469159 , 569385 , 550416 , 684244 , 592253 , 728820 , 480972 , 502566 , 464451 , 516659 , 529177 , 519542 , 814175 , 583425 , 621737 , 508228 , 517028 , 567206 , 610203 , 626064 , 634867 , 463096 , 606717 , 511449 , 518210 , 528557 , 564494 , 438836 , 602829 , 605467 , 505792 , 516347 , 517320 , 661925 , 540626 , 522926 , 603759 , 459527 , 520793 , 575722 , 801907 , 503772 , 591378 , 599859 , 516682 , 619005 , 512741 , 615429 );
Copy
4
2.59 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
406525
430331
431558
438836
448126
456660
459527
463096
464451
469159
480972
486776
491670
492247
499500
502566
503772
505792
508228
511449
512741
516347
516659
516682
517028
517320
517924
518210
519542
520270
520388
520793
522926
526489
528557
529177
540626
540930
543344
549783
550416
564494
567206
569385
575722
580792
581532
583425
591378
592253
598228
598998
599725
599859
602829
603759
605467
606717
610012
610203
615429
619005
621737
623972
626064
634867
661054
661925
684244
692455
700588
723164
728820
801907
814175
]
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 (406525 , 430331 , 431558 , 438836 , 448126 , 456660 , 459527 , 463096 , 464451 , 469159 , 480972 , 486776 , 491670 , 492247 , 499500 , 502566 , 503772 , 505792 , 508228 , 511449 , 512741 , 516347 , 516659 , 516682 , 517028 , 517320 , 517924 , 518210 , 519542 , 520270 , 520388 , 520793 , 522926 , 526489 , 528557 , 529177 , 540626 , 540930 , 543344 , 549783 , 550416 , 564494 , 567206 , 569385 , 575722 , 580792 , 581532 , 583425 , 591378 , 592253 , 598228 , 598998 , 599725 , 599859 , 602829 , 603759 , 605467 , 606717 , 610012 , 610203 , 615429 , 619005 , 621737 , 623972 , 626064 , 634867 , 661054 , 661925 , 684244 , 692455 , 700588 , 723164 , 728820 , 801907 , 814175 );
Copy
5
203.62 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
406525
430331
431558
438836
448126
456660
459527
463096
464451
469159
480972
486776
491670
492247
499500
502566
503772
505792
508228
511449
512741
516347
516659
516682
517028
517320
517924
518210
519542
520270
520388
520793
522926
526489
528557
529177
540626
540930
543344
549783
550416
564494
567206
569385
575722
580792
581532
583425
591378
592253
598228
598998
599725
599859
602829
603759
605467
606717
610012
610203
615429
619005
621737
623972
626064
634867
661054
661925
684244
692455
700588
723164
728820
801907
814175
]
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 (406525 , 430331 , 431558 , 438836 , 448126 , 456660 , 459527 , 463096 , 464451 , 469159 , 480972 , 486776 , 491670 , 492247 , 499500 , 502566 , 503772 , 505792 , 508228 , 511449 , 512741 , 516347 , 516659 , 516682 , 517028 , 517320 , 517924 , 518210 , 519542 , 520270 , 520388 , 520793 , 522926 , 526489 , 528557 , 529177 , 540626 , 540930 , 543344 , 549783 , 550416 , 564494 , 567206 , 569385 , 575722 , 580792 , 581532 , 583425 , 591378 , 592253 , 598228 , 598998 , 599725 , 599859 , 602829 , 603759 , 605467 , 606717 , 610012 , 610203 , 615429 , 619005 , 621737 , 623972 , 626064 , 634867 , 661054 , 661925 , 684244 , 692455 , 700588 , 723164 , 728820 , 801907 , 814175 );
Copy