3
12.88 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
668443
487101
668449
815435
668393
542047
668446
817291
497056
568753
629480
531050
807344
574241
660274
625745
757789
715546
565190
801392
577052
715408
768939
670037
793683
509959
665831
716001
696123
543224
623910
741819
663728
785932
687440
543824
701651
593873
483852
472065
485600
541964
756890
510111
515938
427214
668463
520566
522455
668402
584573
483846
764233
510558
497202
470620
452787
509919
647940
567525
578537
663495
498459
555681
627652
]
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 (668443 , 487101 , 668449 , 815435 , 668393 , 542047 , 668446 , 817291 , 497056 , 568753 , 629480 , 531050 , 807344 , 574241 , 660274 , 625745 , 757789 , 715546 , 565190 , 801392 , 577052 , 715408 , 768939 , 670037 , 793683 , 509959 , 665831 , 716001 , 696123 , 543224 , 623910 , 741819 , 663728 , 785932 , 687440 , 543824 , 701651 , 593873 , 483852 , 472065 , 485600 , 541964 , 756890 , 510111 , 515938 , 427214 , 668463 , 520566 , 522455 , 668402 , 584573 , 483846 , 764233 , 510558 , 497202 , 470620 , 452787 , 509919 , 647940 , 567525 , 578537 , 663495 , 498459 , 555681 , 627652 );
Copy
4
2.29 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
427214
452787
470620
472065
483846
483852
485600
487101
497056
497202
498459
509919
509959
510111
510558
515938
520566
522455
531050
541964
542047
543224
543824
555681
565190
567525
568753
574241
577052
578537
584573
593873
623910
625745
627652
629480
647940
660274
663495
663728
665831
668393
668402
668443
668446
668449
668463
670037
687440
696123
701651
715408
715546
716001
741819
756890
757789
764233
768939
785932
793683
801392
807344
815435
817291
]
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 (427214 , 452787 , 470620 , 472065 , 483846 , 483852 , 485600 , 487101 , 497056 , 497202 , 498459 , 509919 , 509959 , 510111 , 510558 , 515938 , 520566 , 522455 , 531050 , 541964 , 542047 , 543224 , 543824 , 555681 , 565190 , 567525 , 568753 , 574241 , 577052 , 578537 , 584573 , 593873 , 623910 , 625745 , 627652 , 629480 , 647940 , 660274 , 663495 , 663728 , 665831 , 668393 , 668402 , 668443 , 668446 , 668449 , 668463 , 670037 , 687440 , 696123 , 701651 , 715408 , 715546 , 716001 , 741819 , 756890 , 757789 , 764233 , 768939 , 785932 , 793683 , 801392 , 807344 , 815435 , 817291 );
Copy
5
274.56 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
427214
452787
470620
472065
483846
483852
485600
487101
497056
497202
498459
509919
509959
510111
510558
515938
520566
522455
531050
541964
542047
543224
543824
555681
565190
567525
568753
574241
577052
578537
584573
593873
623910
625745
627652
629480
647940
660274
663495
663728
665831
668393
668402
668443
668446
668449
668463
670037
687440
696123
701651
715408
715546
716001
741819
756890
757789
764233
768939
785932
793683
801392
807344
815435
817291
]
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 (427214 , 452787 , 470620 , 472065 , 483846 , 483852 , 485600 , 487101 , 497056 , 497202 , 498459 , 509919 , 509959 , 510111 , 510558 , 515938 , 520566 , 522455 , 531050 , 541964 , 542047 , 543224 , 543824 , 555681 , 565190 , 567525 , 568753 , 574241 , 577052 , 578537 , 584573 , 593873 , 623910 , 625745 , 627652 , 629480 , 647940 , 660274 , 663495 , 663728 , 665831 , 668393 , 668402 , 668443 , 668446 , 668449 , 668463 , 670037 , 687440 , 696123 , 701651 , 715408 , 715546 , 716001 , 741819 , 756890 , 757789 , 764233 , 768939 , 785932 , 793683 , 801392 , 807344 , 815435 , 817291 );
Copy