3
13.28 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
456665
515261
480652
557992
544128
552220
552074
597920
624142
426358
454768
455752
412299
421991
426359
439906
454839
396238
429427
470012
528270
505376
507817
505041
501223
431371
452566
519240
665116
790754
397369
405531
428494
453768
520961
528202
397364
429369
506133
514805
539240
535282
550629
578473
552217
600166
420741
469072
497757
682545
473139
527599
487550
654449
571680
454709
482088
576049
681215
528923
602246
589148
624226
527608
]
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 (456665 , 515261 , 480652 , 557992 , 544128 , 552220 , 552074 , 597920 , 624142 , 426358 , 454768 , 455752 , 412299 , 421991 , 426359 , 439906 , 454839 , 396238 , 429427 , 470012 , 528270 , 505376 , 507817 , 505041 , 501223 , 431371 , 452566 , 519240 , 665116 , 790754 , 397369 , 405531 , 428494 , 453768 , 520961 , 528202 , 397364 , 429369 , 506133 , 514805 , 539240 , 535282 , 550629 , 578473 , 552217 , 600166 , 420741 , 469072 , 497757 , 682545 , 473139 , 527599 , 487550 , 654449 , 571680 , 454709 , 482088 , 576049 , 681215 , 528923 , 602246 , 589148 , 624226 , 527608 );
Copy
4
2.90 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
396238
397364
397369
405531
412299
420741
421991
426358
426359
428494
429369
429427
431371
439906
452566
453768
454709
454768
454839
455752
456665
469072
470012
473139
480652
482088
487550
497757
501223
505041
505376
506133
507817
514805
515261
519240
520961
527599
527608
528202
528270
528923
535282
539240
544128
550629
552074
552217
552220
557992
571680
576049
578473
589148
597920
600166
602246
624142
624226
654449
665116
681215
682545
790754
]
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 (396238 , 397364 , 397369 , 405531 , 412299 , 420741 , 421991 , 426358 , 426359 , 428494 , 429369 , 429427 , 431371 , 439906 , 452566 , 453768 , 454709 , 454768 , 454839 , 455752 , 456665 , 469072 , 470012 , 473139 , 480652 , 482088 , 487550 , 497757 , 501223 , 505041 , 505376 , 506133 , 507817 , 514805 , 515261 , 519240 , 520961 , 527599 , 527608 , 528202 , 528270 , 528923 , 535282 , 539240 , 544128 , 550629 , 552074 , 552217 , 552220 , 557992 , 571680 , 576049 , 578473 , 589148 , 597920 , 600166 , 602246 , 624142 , 624226 , 654449 , 665116 , 681215 , 682545 , 790754 );
Copy
5
97.16 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
396238
397364
397369
405531
412299
420741
421991
426358
426359
428494
429369
429427
431371
439906
452566
453768
454709
454768
454839
455752
456665
469072
470012
473139
480652
482088
487550
497757
501223
505041
505376
506133
507817
514805
515261
519240
520961
527599
527608
528202
528270
528923
535282
539240
544128
550629
552074
552217
552220
557992
571680
576049
578473
589148
597920
600166
602246
624142
624226
654449
665116
681215
682545
790754
]
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 (396238 , 397364 , 397369 , 405531 , 412299 , 420741 , 421991 , 426358 , 426359 , 428494 , 429369 , 429427 , 431371 , 439906 , 452566 , 453768 , 454709 , 454768 , 454839 , 455752 , 456665 , 469072 , 470012 , 473139 , 480652 , 482088 , 487550 , 497757 , 501223 , 505041 , 505376 , 506133 , 507817 , 514805 , 515261 , 519240 , 520961 , 527599 , 527608 , 528202 , 528270 , 528923 , 535282 , 539240 , 544128 , 550629 , 552074 , 552217 , 552220 , 557992 , 571680 , 576049 , 578473 , 589148 , 597920 , 600166 , 602246 , 624142 , 624226 , 654449 , 665116 , 681215 , 682545 , 790754 );
Copy