3
14.87 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
407423
441799
554793
550514
562462
641807
747151
428174
542724
569098
578198
584366
580744
715595
603264
614742
459936
469420
397207
426600
562418
571102
551115
562973
678764
562030
411898
453408
526746
415753
609071
427543
468165
549754
554770
411777
426294
447694
518922
464298
446029
390204
510425
462461
487008
443105
444915
583371
615978
431643
453242
477717
445633
566787
713176
578395
458761
447942
454968
491436
515986
453183
584049
]
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 (407423 , 441799 , 554793 , 550514 , 562462 , 641807 , 747151 , 428174 , 542724 , 569098 , 578198 , 584366 , 580744 , 715595 , 603264 , 614742 , 459936 , 469420 , 397207 , 426600 , 562418 , 571102 , 551115 , 562973 , 678764 , 562030 , 411898 , 453408 , 526746 , 415753 , 609071 , 427543 , 468165 , 549754 , 554770 , 411777 , 426294 , 447694 , 518922 , 464298 , 446029 , 390204 , 510425 , 462461 , 487008 , 443105 , 444915 , 583371 , 615978 , 431643 , 453242 , 477717 , 445633 , 566787 , 713176 , 578395 , 458761 , 447942 , 454968 , 491436 , 515986 , 453183 , 584049 );
Copy
4
3.00 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
390204
397207
407423
411777
411898
415753
426294
426600
427543
428174
431643
441799
443105
444915
445633
446029
447694
447942
453183
453242
453408
454968
458761
459936
462461
464298
468165
469420
477717
487008
491436
510425
515986
518922
526746
542724
549754
550514
551115
554770
554793
562030
562418
562462
562973
566787
569098
571102
578198
578395
580744
583371
584049
584366
603264
609071
614742
615978
641807
678764
713176
715595
747151
]
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 (390204 , 397207 , 407423 , 411777 , 411898 , 415753 , 426294 , 426600 , 427543 , 428174 , 431643 , 441799 , 443105 , 444915 , 445633 , 446029 , 447694 , 447942 , 453183 , 453242 , 453408 , 454968 , 458761 , 459936 , 462461 , 464298 , 468165 , 469420 , 477717 , 487008 , 491436 , 510425 , 515986 , 518922 , 526746 , 542724 , 549754 , 550514 , 551115 , 554770 , 554793 , 562030 , 562418 , 562462 , 562973 , 566787 , 569098 , 571102 , 578198 , 578395 , 580744 , 583371 , 584049 , 584366 , 603264 , 609071 , 614742 , 615978 , 641807 , 678764 , 713176 , 715595 , 747151 );
Copy
5
100.05 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
390204
397207
407423
411777
411898
415753
426294
426600
427543
428174
431643
441799
443105
444915
445633
446029
447694
447942
453183
453242
453408
454968
458761
459936
462461
464298
468165
469420
477717
487008
491436
510425
515986
518922
526746
542724
549754
550514
551115
554770
554793
562030
562418
562462
562973
566787
569098
571102
578198
578395
580744
583371
584049
584366
603264
609071
614742
615978
641807
678764
713176
715595
747151
]
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 (390204 , 397207 , 407423 , 411777 , 411898 , 415753 , 426294 , 426600 , 427543 , 428174 , 431643 , 441799 , 443105 , 444915 , 445633 , 446029 , 447694 , 447942 , 453183 , 453242 , 453408 , 454968 , 458761 , 459936 , 462461 , 464298 , 468165 , 469420 , 477717 , 487008 , 491436 , 510425 , 515986 , 518922 , 526746 , 542724 , 549754 , 550514 , 551115 , 554770 , 554793 , 562030 , 562418 , 562462 , 562973 , 566787 , 569098 , 571102 , 578198 , 578395 , 580744 , 583371 , 584049 , 584366 , 603264 , 609071 , 614742 , 615978 , 641807 , 678764 , 713176 , 715595 , 747151 );
Copy