3
11.76 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
404324
495908
573377
488196
454718
598804
573378
704208
416453
815926
745827
436477
436687
464821
490983
495965
490369
650008
383774
524625
44495
568666
640691
512823
533024
594927
426464
507209
586640
610119
744912
426435
566226
512002
501049
505396
521886
468008
562735
588697
566221
632790
434336
580263
453365
671735
551904
581673
535736
550985
525524
497527
542190
569832
560076
471807
521048
510231
411547
622799
447010
628271
606704
580262
541408
552010
420223
647960
480194
573375
]
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 (404324 , 495908 , 573377 , 488196 , 454718 , 598804 , 573378 , 704208 , 416453 , 815926 , 745827 , 436477 , 436687 , 464821 , 490983 , 495965 , 490369 , 650008 , 383774 , 524625 , 44495 , 568666 , 640691 , 512823 , 533024 , 594927 , 426464 , 507209 , 586640 , 610119 , 744912 , 426435 , 566226 , 512002 , 501049 , 505396 , 521886 , 468008 , 562735 , 588697 , 566221 , 632790 , 434336 , 580263 , 453365 , 671735 , 551904 , 581673 , 535736 , 550985 , 525524 , 497527 , 542190 , 569832 , 560076 , 471807 , 521048 , 510231 , 411547 , 622799 , 447010 , 628271 , 606704 , 580262 , 541408 , 552010 , 420223 , 647960 , 480194 , 573375 );
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
44495
383774
404324
411547
416453
420223
426435
426464
434336
436477
436687
447010
453365
454718
464821
468008
471807
480194
488196
490369
490983
495908
495965
497527
501049
505396
507209
510231
512002
512823
521048
521886
524625
525524
533024
535736
541408
542190
550985
551904
552010
560076
562735
566221
566226
568666
569832
573375
573377
573378
580262
580263
581673
586640
588697
594927
598804
606704
610119
622799
628271
632790
640691
647960
650008
671735
704208
744912
745827
815926
]
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 (44495 , 383774 , 404324 , 411547 , 416453 , 420223 , 426435 , 426464 , 434336 , 436477 , 436687 , 447010 , 453365 , 454718 , 464821 , 468008 , 471807 , 480194 , 488196 , 490369 , 490983 , 495908 , 495965 , 497527 , 501049 , 505396 , 507209 , 510231 , 512002 , 512823 , 521048 , 521886 , 524625 , 525524 , 533024 , 535736 , 541408 , 542190 , 550985 , 551904 , 552010 , 560076 , 562735 , 566221 , 566226 , 568666 , 569832 , 573375 , 573377 , 573378 , 580262 , 580263 , 581673 , 586640 , 588697 , 594927 , 598804 , 606704 , 610119 , 622799 , 628271 , 632790 , 640691 , 647960 , 650008 , 671735 , 704208 , 744912 , 745827 , 815926 );
Copy
5
100.21 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
44495
383774
404324
411547
416453
420223
426435
426464
434336
436477
436687
447010
453365
454718
464821
468008
471807
480194
488196
490369
490983
495908
495965
497527
501049
505396
507209
510231
512002
512823
521048
521886
524625
525524
533024
535736
541408
542190
550985
551904
552010
560076
562735
566221
566226
568666
569832
573375
573377
573378
580262
580263
581673
586640
588697
594927
598804
606704
610119
622799
628271
632790
640691
647960
650008
671735
704208
744912
745827
815926
]
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 (44495 , 383774 , 404324 , 411547 , 416453 , 420223 , 426435 , 426464 , 434336 , 436477 , 436687 , 447010 , 453365 , 454718 , 464821 , 468008 , 471807 , 480194 , 488196 , 490369 , 490983 , 495908 , 495965 , 497527 , 501049 , 505396 , 507209 , 510231 , 512002 , 512823 , 521048 , 521886 , 524625 , 525524 , 533024 , 535736 , 541408 , 542190 , 550985 , 551904 , 552010 , 560076 , 562735 , 566221 , 566226 , 568666 , 569832 , 573375 , 573377 , 573378 , 580262 , 580263 , 581673 , 586640 , 588697 , 594927 , 598804 , 606704 , 610119 , 622799 , 628271 , 632790 , 640691 , 647960 , 650008 , 671735 , 704208 , 744912 , 745827 , 815926 );
Copy