3
11.19 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
772739
719043
825053
616771
634925
787202
718025
819454
459320
715006
787235
732626
733161
797126
720576
661921
785985
795669
741854
767501
790761
778428
812822
732669
717298
469706
430535
563638
555369
806836
801535
394579
412810
558750
595747
784989
799435
796206
751715
798351
792396
502381
506036
569545
421793
444991
768281
452367
805224
423919
571775
785594
603652
441843
507915
522470
569526
677097
588090
585751
606997
507512
601924
620001
]
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 (772739 , 719043 , 825053 , 616771 , 634925 , 787202 , 718025 , 819454 , 459320 , 715006 , 787235 , 732626 , 733161 , 797126 , 720576 , 661921 , 785985 , 795669 , 741854 , 767501 , 790761 , 778428 , 812822 , 732669 , 717298 , 469706 , 430535 , 563638 , 555369 , 806836 , 801535 , 394579 , 412810 , 558750 , 595747 , 784989 , 799435 , 796206 , 751715 , 798351 , 792396 , 502381 , 506036 , 569545 , 421793 , 444991 , 768281 , 452367 , 805224 , 423919 , 571775 , 785594 , 603652 , 441843 , 507915 , 522470 , 569526 , 677097 , 588090 , 585751 , 606997 , 507512 , 601924 , 620001 );
Copy
4
2.78 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
394579
412810
421793
423919
430535
441843
444991
452367
459320
469706
502381
506036
507512
507915
522470
555369
558750
563638
569526
569545
571775
585751
588090
595747
601924
603652
606997
616771
620001
634925
661921
677097
715006
717298
718025
719043
720576
732626
732669
733161
741854
751715
767501
768281
772739
778428
784989
785594
785985
787202
787235
790761
792396
795669
796206
797126
798351
799435
801535
805224
806836
812822
819454
825053
]
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 (394579 , 412810 , 421793 , 423919 , 430535 , 441843 , 444991 , 452367 , 459320 , 469706 , 502381 , 506036 , 507512 , 507915 , 522470 , 555369 , 558750 , 563638 , 569526 , 569545 , 571775 , 585751 , 588090 , 595747 , 601924 , 603652 , 606997 , 616771 , 620001 , 634925 , 661921 , 677097 , 715006 , 717298 , 718025 , 719043 , 720576 , 732626 , 732669 , 733161 , 741854 , 751715 , 767501 , 768281 , 772739 , 778428 , 784989 , 785594 , 785985 , 787202 , 787235 , 790761 , 792396 , 795669 , 796206 , 797126 , 798351 , 799435 , 801535 , 805224 , 806836 , 812822 , 819454 , 825053 );
Copy
5
84.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
394579
412810
421793
423919
430535
441843
444991
452367
459320
469706
502381
506036
507512
507915
522470
555369
558750
563638
569526
569545
571775
585751
588090
595747
601924
603652
606997
616771
620001
634925
661921
677097
715006
717298
718025
719043
720576
732626
732669
733161
741854
751715
767501
768281
772739
778428
784989
785594
785985
787202
787235
790761
792396
795669
796206
797126
798351
799435
801535
805224
806836
812822
819454
825053
]
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 (394579 , 412810 , 421793 , 423919 , 430535 , 441843 , 444991 , 452367 , 459320 , 469706 , 502381 , 506036 , 507512 , 507915 , 522470 , 555369 , 558750 , 563638 , 569526 , 569545 , 571775 , 585751 , 588090 , 595747 , 601924 , 603652 , 606997 , 616771 , 620001 , 634925 , 661921 , 677097 , 715006 , 717298 , 718025 , 719043 , 720576 , 732626 , 732669 , 733161 , 741854 , 751715 , 767501 , 768281 , 772739 , 778428 , 784989 , 785594 , 785985 , 787202 , 787235 , 790761 , 792396 , 795669 , 796206 , 797126 , 798351 , 799435 , 801535 , 805224 , 806836 , 812822 , 819454 , 825053 );
Copy