3
9.84 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
621278
810920
662429
788440
545867
580871
525471
809895
738957
706476
779334
487155
785978
597172
778200
566491
518787
499414
463101
663341
504355
491394
520949
461891
520522
520281
487758
799005
729441
614694
687854
462576
793202
382212
719471
483854
788120
497284
568847
459583
479481
518109
584661
727018
487710
519415
477738
794091
526433
459222
602774
472107
569587
555977
723933
457069
443892
470288
502989
526350
555895
558505
456039
475009
457349
458199
527609
610629
510042
620836
550475
618941
600035
]
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 (621278 , 810920 , 662429 , 788440 , 545867 , 580871 , 525471 , 809895 , 738957 , 706476 , 779334 , 487155 , 785978 , 597172 , 778200 , 566491 , 518787 , 499414 , 463101 , 663341 , 504355 , 491394 , 520949 , 461891 , 520522 , 520281 , 487758 , 799005 , 729441 , 614694 , 687854 , 462576 , 793202 , 382212 , 719471 , 483854 , 788120 , 497284 , 568847 , 459583 , 479481 , 518109 , 584661 , 727018 , 487710 , 519415 , 477738 , 794091 , 526433 , 459222 , 602774 , 472107 , 569587 , 555977 , 723933 , 457069 , 443892 , 470288 , 502989 , 526350 , 555895 , 558505 , 456039 , 475009 , 457349 , 458199 , 527609 , 610629 , 510042 , 620836 , 550475 , 618941 , 600035 );
Copy
4
2.43 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
382212
443892
456039
457069
457349
458199
459222
459583
461891
462576
463101
470288
472107
475009
477738
479481
483854
487155
487710
487758
491394
497284
499414
502989
504355
510042
518109
518787
519415
520281
520522
520949
525471
526350
526433
527609
545867
550475
555895
555977
558505
566491
568847
569587
580871
584661
597172
600035
602774
610629
614694
618941
620836
621278
662429
663341
687854
706476
719471
723933
727018
729441
738957
778200
779334
785978
788120
788440
793202
794091
799005
809895
810920
]
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 (382212 , 443892 , 456039 , 457069 , 457349 , 458199 , 459222 , 459583 , 461891 , 462576 , 463101 , 470288 , 472107 , 475009 , 477738 , 479481 , 483854 , 487155 , 487710 , 487758 , 491394 , 497284 , 499414 , 502989 , 504355 , 510042 , 518109 , 518787 , 519415 , 520281 , 520522 , 520949 , 525471 , 526350 , 526433 , 527609 , 545867 , 550475 , 555895 , 555977 , 558505 , 566491 , 568847 , 569587 , 580871 , 584661 , 597172 , 600035 , 602774 , 610629 , 614694 , 618941 , 620836 , 621278 , 662429 , 663341 , 687854 , 706476 , 719471 , 723933 , 727018 , 729441 , 738957 , 778200 , 779334 , 785978 , 788120 , 788440 , 793202 , 794091 , 799005 , 809895 , 810920 );
Copy
5
75.66 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
382212
443892
456039
457069
457349
458199
459222
459583
461891
462576
463101
470288
472107
475009
477738
479481
483854
487155
487710
487758
491394
497284
499414
502989
504355
510042
518109
518787
519415
520281
520522
520949
525471
526350
526433
527609
545867
550475
555895
555977
558505
566491
568847
569587
580871
584661
597172
600035
602774
610629
614694
618941
620836
621278
662429
663341
687854
706476
719471
723933
727018
729441
738957
778200
779334
785978
788120
788440
793202
794091
799005
809895
810920
]
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 (382212 , 443892 , 456039 , 457069 , 457349 , 458199 , 459222 , 459583 , 461891 , 462576 , 463101 , 470288 , 472107 , 475009 , 477738 , 479481 , 483854 , 487155 , 487710 , 487758 , 491394 , 497284 , 499414 , 502989 , 504355 , 510042 , 518109 , 518787 , 519415 , 520281 , 520522 , 520949 , 525471 , 526350 , 526433 , 527609 , 545867 , 550475 , 555895 , 555977 , 558505 , 566491 , 568847 , 569587 , 580871 , 584661 , 597172 , 600035 , 602774 , 610629 , 614694 , 618941 , 620836 , 621278 , 662429 , 663341 , 687854 , 706476 , 719471 , 723933 , 727018 , 729441 , 738957 , 778200 , 779334 , 785978 , 788120 , 788440 , 793202 , 794091 , 799005 , 809895 , 810920 );
Copy