4
9.71 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
826463
790380
825993
773159
806996
788970
633482
782567
823507
821273
576255
790384
779371
790984
821546
704259
790991
550523
750920
754188
713684
775606
732457
525630
449194
477124
495871
741901
822960
452177
702570
815831
816935
504925
495977
541913
589077
590707
593156
790101
775284
450997
467370
494397
504453
498105
815357
479432
455523
514293
699577
589139
523491
507649
538936
588240
599598
784498
434782
468748
476930
491220
814940
586639
625677
426030
451311
516021
593641
601323
479425
516718
591792
]
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 (826463 , 790380 , 825993 , 773159 , 806996 , 788970 , 633482 , 782567 , 823507 , 821273 , 576255 , 790384 , 779371 , 790984 , 821546 , 704259 , 790991 , 550523 , 750920 , 754188 , 713684 , 775606 , 732457 , 525630 , 449194 , 477124 , 495871 , 741901 , 822960 , 452177 , 702570 , 815831 , 816935 , 504925 , 495977 , 541913 , 589077 , 590707 , 593156 , 790101 , 775284 , 450997 , 467370 , 494397 , 504453 , 498105 , 815357 , 479432 , 455523 , 514293 , 699577 , 589139 , 523491 , 507649 , 538936 , 588240 , 599598 , 784498 , 434782 , 468748 , 476930 , 491220 , 814940 , 586639 , 625677 , 426030 , 451311 , 516021 , 593641 , 601323 , 479425 , 516718 , 591792 );
Copy
5
3.19 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
426030
434782
449194
450997
451311
452177
455523
467370
468748
476930
477124
479425
479432
491220
494397
495871
495977
498105
504453
504925
507649
514293
516021
516718
523491
525630
538936
541913
550523
576255
586639
588240
589077
589139
590707
591792
593156
593641
599598
601323
625677
633482
699577
702570
704259
713684
732457
741901
750920
754188
773159
775284
775606
779371
782567
784498
788970
790101
790380
790384
790984
790991
806996
814940
815357
815831
816935
821273
821546
822960
823507
825993
826463
]
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 (426030 , 434782 , 449194 , 450997 , 451311 , 452177 , 455523 , 467370 , 468748 , 476930 , 477124 , 479425 , 479432 , 491220 , 494397 , 495871 , 495977 , 498105 , 504453 , 504925 , 507649 , 514293 , 516021 , 516718 , 523491 , 525630 , 538936 , 541913 , 550523 , 576255 , 586639 , 588240 , 589077 , 589139 , 590707 , 591792 , 593156 , 593641 , 599598 , 601323 , 625677 , 633482 , 699577 , 702570 , 704259 , 713684 , 732457 , 741901 , 750920 , 754188 , 773159 , 775284 , 775606 , 779371 , 782567 , 784498 , 788970 , 790101 , 790380 , 790384 , 790984 , 790991 , 806996 , 814940 , 815357 , 815831 , 816935 , 821273 , 821546 , 822960 , 823507 , 825993 , 826463 );
Copy
6
105.71 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
426030
434782
449194
450997
451311
452177
455523
467370
468748
476930
477124
479425
479432
491220
494397
495871
495977
498105
504453
504925
507649
514293
516021
516718
523491
525630
538936
541913
550523
576255
586639
588240
589077
589139
590707
591792
593156
593641
599598
601323
625677
633482
699577
702570
704259
713684
732457
741901
750920
754188
773159
775284
775606
779371
782567
784498
788970
790101
790380
790384
790984
790991
806996
814940
815357
815831
816935
821273
821546
822960
823507
825993
826463
]
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 (426030 , 434782 , 449194 , 450997 , 451311 , 452177 , 455523 , 467370 , 468748 , 476930 , 477124 , 479425 , 479432 , 491220 , 494397 , 495871 , 495977 , 498105 , 504453 , 504925 , 507649 , 514293 , 516021 , 516718 , 523491 , 525630 , 538936 , 541913 , 550523 , 576255 , 586639 , 588240 , 589077 , 589139 , 590707 , 591792 , 593156 , 593641 , 599598 , 601323 , 625677 , 633482 , 699577 , 702570 , 704259 , 713684 , 732457 , 741901 , 750920 , 754188 , 773159 , 775284 , 775606 , 779371 , 782567 , 784498 , 788970 , 790101 , 790380 , 790384 , 790984 , 790991 , 806996 , 814940 , 815357 , 815831 , 816935 , 821273 , 821546 , 822960 , 823507 , 825993 , 826463 );
Copy