3
11.30 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
515977
464953
395895
441546
442356
469137
475222
448576
451302
456665
515261
480652
557992
544128
665107
552074
597920
624142
426358
455752
412299
421991
426359
439906
454839
396238
470012
505376
507817
505041
501223
431371
452566
519240
663492
665116
665108
790754
428494
453768
520961
528202
429369
506133
514805
539240
535282
550629
420741
469072
497757
682545
473139
527599
487550
654449
571680
482088
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 (515977 , 464953 , 395895 , 441546 , 442356 , 469137 , 475222 , 448576 , 451302 , 456665 , 515261 , 480652 , 557992 , 544128 , 665107 , 552074 , 597920 , 624142 , 426358 , 455752 , 412299 , 421991 , 426359 , 439906 , 454839 , 396238 , 470012 , 505376 , 507817 , 505041 , 501223 , 431371 , 452566 , 519240 , 663492 , 665116 , 665108 , 790754 , 428494 , 453768 , 520961 , 528202 , 429369 , 506133 , 514805 , 539240 , 535282 , 550629 , 420741 , 469072 , 497757 , 682545 , 473139 , 527599 , 487550 , 654449 , 571680 , 482088 , 681215 , 528923 , 602246 , 589148 , 624226 , 527608 );
Copy
4
2.19 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
395895
396238
412299
420741
421991
426358
426359
428494
429369
431371
439906
441546
442356
448576
451302
452566
453768
454839
455752
456665
464953
469072
469137
470012
473139
475222
480652
482088
487550
497757
501223
505041
505376
506133
507817
514805
515261
515977
519240
520961
527599
527608
528202
528923
535282
539240
544128
550629
552074
557992
571680
589148
597920
602246
624142
624226
654449
663492
665107
665108
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 (395895 , 396238 , 412299 , 420741 , 421991 , 426358 , 426359 , 428494 , 429369 , 431371 , 439906 , 441546 , 442356 , 448576 , 451302 , 452566 , 453768 , 454839 , 455752 , 456665 , 464953 , 469072 , 469137 , 470012 , 473139 , 475222 , 480652 , 482088 , 487550 , 497757 , 501223 , 505041 , 505376 , 506133 , 507817 , 514805 , 515261 , 515977 , 519240 , 520961 , 527599 , 527608 , 528202 , 528923 , 535282 , 539240 , 544128 , 550629 , 552074 , 557992 , 571680 , 589148 , 597920 , 602246 , 624142 , 624226 , 654449 , 663492 , 665107 , 665108 , 665116 , 681215 , 682545 , 790754 );
Copy
5
106.04 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
395895
396238
412299
420741
421991
426358
426359
428494
429369
431371
439906
441546
442356
448576
451302
452566
453768
454839
455752
456665
464953
469072
469137
470012
473139
475222
480652
482088
487550
497757
501223
505041
505376
506133
507817
514805
515261
515977
519240
520961
527599
527608
528202
528923
535282
539240
544128
550629
552074
557992
571680
589148
597920
602246
624142
624226
654449
663492
665107
665108
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 (395895 , 396238 , 412299 , 420741 , 421991 , 426358 , 426359 , 428494 , 429369 , 431371 , 439906 , 441546 , 442356 , 448576 , 451302 , 452566 , 453768 , 454839 , 455752 , 456665 , 464953 , 469072 , 469137 , 470012 , 473139 , 475222 , 480652 , 482088 , 487550 , 497757 , 501223 , 505041 , 505376 , 506133 , 507817 , 514805 , 515261 , 515977 , 519240 , 520961 , 527599 , 527608 , 528202 , 528923 , 535282 , 539240 , 544128 , 550629 , 552074 , 557992 , 571680 , 589148 , 597920 , 602246 , 624142 , 624226 , 654449 , 663492 , 665107 , 665108 , 665116 , 681215 , 682545 , 790754 );
Copy