4
10.45 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
775917
382140
799344
775949
804110
815068
812419
808253
797735
707155
672161
703843
755848
800506
810672
634216
542681
565039
662202
639974
788510
777516
801889
813357
810696
813350
802123
753517
636113
815076
475465
651489
676154
580125
824492
544680
818687
413274
820686
415392
818447
758983
415376
528398
817039
810985
396288
818474
820336
804186
420133
552045
415476
571026
810668
415380
507042
421288
816975
647950
487582
411433
420416
565038
415388
481162
389448
473182
634780
528435
]
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 (775917 , 382140 , 799344 , 775949 , 804110 , 815068 , 812419 , 808253 , 797735 , 707155 , 672161 , 703843 , 755848 , 800506 , 810672 , 634216 , 542681 , 565039 , 662202 , 639974 , 788510 , 777516 , 801889 , 813357 , 810696 , 813350 , 802123 , 753517 , 636113 , 815076 , 475465 , 651489 , 676154 , 580125 , 824492 , 544680 , 818687 , 413274 , 820686 , 415392 , 818447 , 758983 , 415376 , 528398 , 817039 , 810985 , 396288 , 818474 , 820336 , 804186 , 420133 , 552045 , 415476 , 571026 , 810668 , 415380 , 507042 , 421288 , 816975 , 647950 , 487582 , 411433 , 420416 , 565038 , 415388 , 481162 , 389448 , 473182 , 634780 , 528435 );
Copy
5
3.36 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
382140
389448
396288
411433
413274
415376
415380
415388
415392
415476
420133
420416
421288
473182
475465
481162
487582
507042
528398
528435
542681
544680
552045
565038
565039
571026
580125
634216
634780
636113
639974
647950
651489
662202
672161
676154
703843
707155
753517
755848
758983
775917
775949
777516
788510
797735
799344
800506
801889
802123
804110
804186
808253
810668
810672
810696
810985
812419
813350
813357
815068
815076
816975
817039
818447
818474
818687
820336
820686
]
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 (382140 , 389448 , 396288 , 411433 , 413274 , 415376 , 415380 , 415388 , 415392 , 415476 , 420133 , 420416 , 421288 , 473182 , 475465 , 481162 , 487582 , 507042 , 528398 , 528435 , 542681 , 544680 , 552045 , 565038 , 565039 , 571026 , 580125 , 634216 , 634780 , 636113 , 639974 , 647950 , 651489 , 662202 , 672161 , 676154 , 703843 , 707155 , 753517 , 755848 , 758983 , 775917 , 775949 , 777516 , 788510 , 797735 , 799344 , 800506 , 801889 , 802123 , 804110 , 804186 , 808253 , 810668 , 810672 , 810696 , 810985 , 812419 , 813350 , 813357 , 815068 , 815076 , 816975 , 817039 , 818447 , 818474 , 818687 , 820336 , 820686 );
Copy
6
106.40 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
382140
389448
396288
411433
413274
415376
415380
415388
415392
415476
420133
420416
421288
473182
475465
481162
487582
507042
528398
528435
542681
544680
552045
565038
565039
571026
580125
634216
634780
636113
639974
647950
651489
662202
672161
676154
703843
707155
753517
755848
758983
775917
775949
777516
788510
797735
799344
800506
801889
802123
804110
804186
808253
810668
810672
810696
810985
812419
813350
813357
815068
815076
816975
817039
818447
818474
818687
820336
820686
]
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 (382140 , 389448 , 396288 , 411433 , 413274 , 415376 , 415380 , 415388 , 415392 , 415476 , 420133 , 420416 , 421288 , 473182 , 475465 , 481162 , 487582 , 507042 , 528398 , 528435 , 542681 , 544680 , 552045 , 565038 , 565039 , 571026 , 580125 , 634216 , 634780 , 636113 , 639974 , 647950 , 651489 , 662202 , 672161 , 676154 , 703843 , 707155 , 753517 , 755848 , 758983 , 775917 , 775949 , 777516 , 788510 , 797735 , 799344 , 800506 , 801889 , 802123 , 804110 , 804186 , 808253 , 810668 , 810672 , 810696 , 810985 , 812419 , 813350 , 813357 , 815068 , 815076 , 816975 , 817039 , 818447 , 818474 , 818687 , 820336 , 820686 );
Copy