3
11.04 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
466397
479955
446179
519476
526105
593485
419956
385755
411838
447094
504132
543356
591694
641414
612068
411846
462572
477881
527678
513298
519213
587326
499183
635050
551525
425588
411845
465379
528412
512701
549838
554060
589795
626405
797949
505078
497793
507641
448954
459512
623211
425990
448687
449717
528635
548848
588642
635074
485633
513471
440862
449158
526373
544202
485061
577711
477114
492325
621201
453028
526895
527908
526633
625440
]
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 (466397 , 479955 , 446179 , 519476 , 526105 , 593485 , 419956 , 385755 , 411838 , 447094 , 504132 , 543356 , 591694 , 641414 , 612068 , 411846 , 462572 , 477881 , 527678 , 513298 , 519213 , 587326 , 499183 , 635050 , 551525 , 425588 , 411845 , 465379 , 528412 , 512701 , 549838 , 554060 , 589795 , 626405 , 797949 , 505078 , 497793 , 507641 , 448954 , 459512 , 623211 , 425990 , 448687 , 449717 , 528635 , 548848 , 588642 , 635074 , 485633 , 513471 , 440862 , 449158 , 526373 , 544202 , 485061 , 577711 , 477114 , 492325 , 621201 , 453028 , 526895 , 527908 , 526633 , 625440 );
Copy
4
3.09 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
385755
411838
411845
411846
419956
425588
425990
440862
446179
447094
448687
448954
449158
449717
453028
459512
462572
465379
466397
477114
477881
479955
485061
485633
492325
497793
499183
504132
505078
507641
512701
513298
513471
519213
519476
526105
526373
526633
526895
527678
527908
528412
528635
543356
544202
548848
549838
551525
554060
577711
587326
588642
589795
591694
593485
612068
621201
623211
625440
626405
635050
635074
641414
797949
]
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 (385755 , 411838 , 411845 , 411846 , 419956 , 425588 , 425990 , 440862 , 446179 , 447094 , 448687 , 448954 , 449158 , 449717 , 453028 , 459512 , 462572 , 465379 , 466397 , 477114 , 477881 , 479955 , 485061 , 485633 , 492325 , 497793 , 499183 , 504132 , 505078 , 507641 , 512701 , 513298 , 513471 , 519213 , 519476 , 526105 , 526373 , 526633 , 526895 , 527678 , 527908 , 528412 , 528635 , 543356 , 544202 , 548848 , 549838 , 551525 , 554060 , 577711 , 587326 , 588642 , 589795 , 591694 , 593485 , 612068 , 621201 , 623211 , 625440 , 626405 , 635050 , 635074 , 641414 , 797949 );
Copy
5
96.14 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
385755
411838
411845
411846
419956
425588
425990
440862
446179
447094
448687
448954
449158
449717
453028
459512
462572
465379
466397
477114
477881
479955
485061
485633
492325
497793
499183
504132
505078
507641
512701
513298
513471
519213
519476
526105
526373
526633
526895
527678
527908
528412
528635
543356
544202
548848
549838
551525
554060
577711
587326
588642
589795
591694
593485
612068
621201
623211
625440
626405
635050
635074
641414
797949
]
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 (385755 , 411838 , 411845 , 411846 , 419956 , 425588 , 425990 , 440862 , 446179 , 447094 , 448687 , 448954 , 449158 , 449717 , 453028 , 459512 , 462572 , 465379 , 466397 , 477114 , 477881 , 479955 , 485061 , 485633 , 492325 , 497793 , 499183 , 504132 , 505078 , 507641 , 512701 , 513298 , 513471 , 519213 , 519476 , 526105 , 526373 , 526633 , 526895 , 527678 , 527908 , 528412 , 528635 , 543356 , 544202 , 548848 , 549838 , 551525 , 554060 , 577711 , 587326 , 588642 , 589795 , 591694 , 593485 , 612068 , 621201 , 623211 , 625440 , 626405 , 635050 , 635074 , 641414 , 797949 );
Copy