3
13.70 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
558645
596669
612414
637520
792423
788315
401073
446531
446863
505905
508502
508457
519559
469566
453358
503419
510571
475704
759639
509940
514218
617165
419197
815033
457751
529120
524533
562037
573298
576065
569457
569926
620298
409995
537208
614747
459358
554770
633114
571053
561351
604460
790036
491458
448840
574095
489263
598806
568554
580747
434001
472721
551087
568327
560114
622987
601127
602939
618926
551137
548257
513207
572014
492555
]
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 (558645 , 596669 , 612414 , 637520 , 792423 , 788315 , 401073 , 446531 , 446863 , 505905 , 508502 , 508457 , 519559 , 469566 , 453358 , 503419 , 510571 , 475704 , 759639 , 509940 , 514218 , 617165 , 419197 , 815033 , 457751 , 529120 , 524533 , 562037 , 573298 , 576065 , 569457 , 569926 , 620298 , 409995 , 537208 , 614747 , 459358 , 554770 , 633114 , 571053 , 561351 , 604460 , 790036 , 491458 , 448840 , 574095 , 489263 , 598806 , 568554 , 580747 , 434001 , 472721 , 551087 , 568327 , 560114 , 622987 , 601127 , 602939 , 618926 , 551137 , 548257 , 513207 , 572014 , 492555 );
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
401073
409995
419197
434001
446531
446863
448840
453358
457751
459358
469566
472721
475704
489263
491458
492555
503419
505905
508457
508502
509940
510571
513207
514218
519559
524533
529120
537208
548257
551087
551137
554770
558645
560114
561351
562037
568327
568554
569457
569926
571053
572014
573298
574095
576065
580747
596669
598806
601127
602939
604460
612414
614747
617165
618926
620298
622987
633114
637520
759639
788315
790036
792423
815033
]
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 (401073 , 409995 , 419197 , 434001 , 446531 , 446863 , 448840 , 453358 , 457751 , 459358 , 469566 , 472721 , 475704 , 489263 , 491458 , 492555 , 503419 , 505905 , 508457 , 508502 , 509940 , 510571 , 513207 , 514218 , 519559 , 524533 , 529120 , 537208 , 548257 , 551087 , 551137 , 554770 , 558645 , 560114 , 561351 , 562037 , 568327 , 568554 , 569457 , 569926 , 571053 , 572014 , 573298 , 574095 , 576065 , 580747 , 596669 , 598806 , 601127 , 602939 , 604460 , 612414 , 614747 , 617165 , 618926 , 620298 , 622987 , 633114 , 637520 , 759639 , 788315 , 790036 , 792423 , 815033 );
Copy
5
140.21 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
401073
409995
419197
434001
446531
446863
448840
453358
457751
459358
469566
472721
475704
489263
491458
492555
503419
505905
508457
508502
509940
510571
513207
514218
519559
524533
529120
537208
548257
551087
551137
554770
558645
560114
561351
562037
568327
568554
569457
569926
571053
572014
573298
574095
576065
580747
596669
598806
601127
602939
604460
612414
614747
617165
618926
620298
622987
633114
637520
759639
788315
790036
792423
815033
]
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 (401073 , 409995 , 419197 , 434001 , 446531 , 446863 , 448840 , 453358 , 457751 , 459358 , 469566 , 472721 , 475704 , 489263 , 491458 , 492555 , 503419 , 505905 , 508457 , 508502 , 509940 , 510571 , 513207 , 514218 , 519559 , 524533 , 529120 , 537208 , 548257 , 551087 , 551137 , 554770 , 558645 , 560114 , 561351 , 562037 , 568327 , 568554 , 569457 , 569926 , 571053 , 572014 , 573298 , 574095 , 576065 , 580747 , 596669 , 598806 , 601127 , 602939 , 604460 , 612414 , 614747 , 617165 , 618926 , 620298 , 622987 , 633114 , 637520 , 759639 , 788315 , 790036 , 792423 , 815033 );
Copy