3
9.52 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
494242
484923
443002
447211
424145
544893
688866
778500
744902
764162
766542
489785
461009
678578
707869
736347
399813
436838
542305
678580
454340
418405
504359
573811
485223
465387
707180
779632
799456
807338
479521
496953
569941
473761
504152
499224
567666
797835
421844
510526
526527
472586
475566
507363
546372
571361
563296
563075
566962
566754
616754
809496
569269
580674
549840
472679
522452
535447
683054
442612
535446
536436
549830
]
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 (494242 , 484923 , 443002 , 447211 , 424145 , 544893 , 688866 , 778500 , 744902 , 764162 , 766542 , 489785 , 461009 , 678578 , 707869 , 736347 , 399813 , 436838 , 542305 , 678580 , 454340 , 418405 , 504359 , 573811 , 485223 , 465387 , 707180 , 779632 , 799456 , 807338 , 479521 , 496953 , 569941 , 473761 , 504152 , 499224 , 567666 , 797835 , 421844 , 510526 , 526527 , 472586 , 475566 , 507363 , 546372 , 571361 , 563296 , 563075 , 566962 , 566754 , 616754 , 809496 , 569269 , 580674 , 549840 , 472679 , 522452 , 535447 , 683054 , 442612 , 535446 , 536436 , 549830 );
Copy
4
2.18 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
399813
418405
421844
424145
436838
442612
443002
447211
454340
461009
465387
472586
472679
473761
475566
479521
484923
485223
489785
494242
496953
499224
504152
504359
507363
510526
522452
526527
535446
535447
536436
542305
544893
546372
549830
549840
563075
563296
566754
566962
567666
569269
569941
571361
573811
580674
616754
678578
678580
683054
688866
707180
707869
736347
744902
764162
766542
778500
779632
797835
799456
807338
809496
]
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 (399813 , 418405 , 421844 , 424145 , 436838 , 442612 , 443002 , 447211 , 454340 , 461009 , 465387 , 472586 , 472679 , 473761 , 475566 , 479521 , 484923 , 485223 , 489785 , 494242 , 496953 , 499224 , 504152 , 504359 , 507363 , 510526 , 522452 , 526527 , 535446 , 535447 , 536436 , 542305 , 544893 , 546372 , 549830 , 549840 , 563075 , 563296 , 566754 , 566962 , 567666 , 569269 , 569941 , 571361 , 573811 , 580674 , 616754 , 678578 , 678580 , 683054 , 688866 , 707180 , 707869 , 736347 , 744902 , 764162 , 766542 , 778500 , 779632 , 797835 , 799456 , 807338 , 809496 );
Copy
5
134.27 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
399813
418405
421844
424145
436838
442612
443002
447211
454340
461009
465387
472586
472679
473761
475566
479521
484923
485223
489785
494242
496953
499224
504152
504359
507363
510526
522452
526527
535446
535447
536436
542305
544893
546372
549830
549840
563075
563296
566754
566962
567666
569269
569941
571361
573811
580674
616754
678578
678580
683054
688866
707180
707869
736347
744902
764162
766542
778500
779632
797835
799456
807338
809496
]
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 (399813 , 418405 , 421844 , 424145 , 436838 , 442612 , 443002 , 447211 , 454340 , 461009 , 465387 , 472586 , 472679 , 473761 , 475566 , 479521 , 484923 , 485223 , 489785 , 494242 , 496953 , 499224 , 504152 , 504359 , 507363 , 510526 , 522452 , 526527 , 535446 , 535447 , 536436 , 542305 , 544893 , 546372 , 549830 , 549840 , 563075 , 563296 , 566754 , 566962 , 567666 , 569269 , 569941 , 571361 , 573811 , 580674 , 616754 , 678578 , 678580 , 683054 , 688866 , 707180 , 707869 , 736347 , 744902 , 764162 , 766542 , 778500 , 779632 , 797835 , 799456 , 807338 , 809496 );
Copy