3
11.40 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
589349
791406
799190
490918
666525
451264
457945
543842
667748
825366
639254
475406
424624
537890
650544
446373
412911
539319
555129
424214
620395
803074
796877
473779
521810
436690
633813
469100
472266
528178
451267
554526
429563
814928
523255
464132
450287
471035
600173
620217
453213
514408
516686
486350
588411
761039
646776
450977
427209
531116
516718
632632
427174
666871
426399
559942
641698
714511
547229
523401
511313
560408
605182
518018
425804
630536
]
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 (589349 , 791406 , 799190 , 490918 , 666525 , 451264 , 457945 , 543842 , 667748 , 825366 , 639254 , 475406 , 424624 , 537890 , 650544 , 446373 , 412911 , 539319 , 555129 , 424214 , 620395 , 803074 , 796877 , 473779 , 521810 , 436690 , 633813 , 469100 , 472266 , 528178 , 451267 , 554526 , 429563 , 814928 , 523255 , 464132 , 450287 , 471035 , 600173 , 620217 , 453213 , 514408 , 516686 , 486350 , 588411 , 761039 , 646776 , 450977 , 427209 , 531116 , 516718 , 632632 , 427174 , 666871 , 426399 , 559942 , 641698 , 714511 , 547229 , 523401 , 511313 , 560408 , 605182 , 518018 , 425804 , 630536 );
Copy
4
2.63 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
412911
424214
424624
425804
426399
427174
427209
429563
436690
446373
450287
450977
451264
451267
453213
457945
464132
469100
471035
472266
473779
475406
486350
490918
511313
514408
516686
516718
518018
521810
523255
523401
528178
531116
537890
539319
543842
547229
554526
555129
559942
560408
588411
589349
600173
605182
620217
620395
630536
632632
633813
639254
641698
646776
650544
666525
666871
667748
714511
761039
791406
796877
799190
803074
814928
825366
]
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 (412911 , 424214 , 424624 , 425804 , 426399 , 427174 , 427209 , 429563 , 436690 , 446373 , 450287 , 450977 , 451264 , 451267 , 453213 , 457945 , 464132 , 469100 , 471035 , 472266 , 473779 , 475406 , 486350 , 490918 , 511313 , 514408 , 516686 , 516718 , 518018 , 521810 , 523255 , 523401 , 528178 , 531116 , 537890 , 539319 , 543842 , 547229 , 554526 , 555129 , 559942 , 560408 , 588411 , 589349 , 600173 , 605182 , 620217 , 620395 , 630536 , 632632 , 633813 , 639254 , 641698 , 646776 , 650544 , 666525 , 666871 , 667748 , 714511 , 761039 , 791406 , 796877 , 799190 , 803074 , 814928 , 825366 );
Copy
5
88.71 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
412911
424214
424624
425804
426399
427174
427209
429563
436690
446373
450287
450977
451264
451267
453213
457945
464132
469100
471035
472266
473779
475406
486350
490918
511313
514408
516686
516718
518018
521810
523255
523401
528178
531116
537890
539319
543842
547229
554526
555129
559942
560408
588411
589349
600173
605182
620217
620395
630536
632632
633813
639254
641698
646776
650544
666525
666871
667748
714511
761039
791406
796877
799190
803074
814928
825366
]
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 (412911 , 424214 , 424624 , 425804 , 426399 , 427174 , 427209 , 429563 , 436690 , 446373 , 450287 , 450977 , 451264 , 451267 , 453213 , 457945 , 464132 , 469100 , 471035 , 472266 , 473779 , 475406 , 486350 , 490918 , 511313 , 514408 , 516686 , 516718 , 518018 , 521810 , 523255 , 523401 , 528178 , 531116 , 537890 , 539319 , 543842 , 547229 , 554526 , 555129 , 559942 , 560408 , 588411 , 589349 , 600173 , 605182 , 620217 , 620395 , 630536 , 632632 , 633813 , 639254 , 641698 , 646776 , 650544 , 666525 , 666871 , 667748 , 714511 , 761039 , 791406 , 796877 , 799190 , 803074 , 814928 , 825366 );
Copy