3
18.09 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
491784
489309
516025
624270
524528
601628
425206
421974
395622
452324
584415
619920
415950
525044
513775
541688
383262
541699
654322
421175
443636
436932
485690
409861
507591
594014
493334
525688
453358
562832
495397
503934
593096
613253
622938
522878
499353
604280
446894
524165
427550
588624
598199
566702
625437
603102
521784
484688
612434
518237
506047
536397
544472
615881
591135
395696
517175
416292
454264
616800
516227
559127
445617
550343
603971
420262
]
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 (491784 , 489309 , 516025 , 624270 , 524528 , 601628 , 425206 , 421974 , 395622 , 452324 , 584415 , 619920 , 415950 , 525044 , 513775 , 541688 , 383262 , 541699 , 654322 , 421175 , 443636 , 436932 , 485690 , 409861 , 507591 , 594014 , 493334 , 525688 , 453358 , 562832 , 495397 , 503934 , 593096 , 613253 , 622938 , 522878 , 499353 , 604280 , 446894 , 524165 , 427550 , 588624 , 598199 , 566702 , 625437 , 603102 , 521784 , 484688 , 612434 , 518237 , 506047 , 536397 , 544472 , 615881 , 591135 , 395696 , 517175 , 416292 , 454264 , 616800 , 516227 , 559127 , 445617 , 550343 , 603971 , 420262 );
Copy
4
3.06 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
383262
395622
395696
409861
415950
416292
420262
421175
421974
425206
427550
436932
443636
445617
446894
452324
453358
454264
484688
485690
489309
491784
493334
495397
499353
503934
506047
507591
513775
516025
516227
517175
518237
521784
522878
524165
524528
525044
525688
536397
541688
541699
544472
550343
559127
562832
566702
584415
588624
591135
593096
594014
598199
601628
603102
603971
604280
612434
613253
615881
616800
619920
622938
624270
625437
654322
]
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 (383262 , 395622 , 395696 , 409861 , 415950 , 416292 , 420262 , 421175 , 421974 , 425206 , 427550 , 436932 , 443636 , 445617 , 446894 , 452324 , 453358 , 454264 , 484688 , 485690 , 489309 , 491784 , 493334 , 495397 , 499353 , 503934 , 506047 , 507591 , 513775 , 516025 , 516227 , 517175 , 518237 , 521784 , 522878 , 524165 , 524528 , 525044 , 525688 , 536397 , 541688 , 541699 , 544472 , 550343 , 559127 , 562832 , 566702 , 584415 , 588624 , 591135 , 593096 , 594014 , 598199 , 601628 , 603102 , 603971 , 604280 , 612434 , 613253 , 615881 , 616800 , 619920 , 622938 , 624270 , 625437 , 654322 );
Copy
5
96.59 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
383262
395622
395696
409861
415950
416292
420262
421175
421974
425206
427550
436932
443636
445617
446894
452324
453358
454264
484688
485690
489309
491784
493334
495397
499353
503934
506047
507591
513775
516025
516227
517175
518237
521784
522878
524165
524528
525044
525688
536397
541688
541699
544472
550343
559127
562832
566702
584415
588624
591135
593096
594014
598199
601628
603102
603971
604280
612434
613253
615881
616800
619920
622938
624270
625437
654322
]
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 (383262 , 395622 , 395696 , 409861 , 415950 , 416292 , 420262 , 421175 , 421974 , 425206 , 427550 , 436932 , 443636 , 445617 , 446894 , 452324 , 453358 , 454264 , 484688 , 485690 , 489309 , 491784 , 493334 , 495397 , 499353 , 503934 , 506047 , 507591 , 513775 , 516025 , 516227 , 517175 , 518237 , 521784 , 522878 , 524165 , 524528 , 525044 , 525688 , 536397 , 541688 , 541699 , 544472 , 550343 , 559127 , 562832 , 566702 , 584415 , 588624 , 591135 , 593096 , 594014 , 598199 , 601628 , 603102 , 603971 , 604280 , 612434 , 613253 , 615881 , 616800 , 619920 , 622938 , 624270 , 625437 , 654322 );
Copy