3
11.73 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
594782
569001
760281
800771
714145
789252
811931
759737
726468
558004
437218
477990
535632
455026
743126
817385
601689
400813
539506
518869
728166
462096
734489
766574
701049
592735
387175
556405
578472
458561
400817
444579
705450
709359
663485
574504
478793
515160
475855
556847
807522
389532
391964
580321
577377
582218
548743
563226
383643
401902
514435
518854
563055
567431
663988
545676
747515
443685
484441
663372
667839
743065
451445
739532
490874
450318
514457
814901
521131
513047
]
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 (594782 , 569001 , 760281 , 800771 , 714145 , 789252 , 811931 , 759737 , 726468 , 558004 , 437218 , 477990 , 535632 , 455026 , 743126 , 817385 , 601689 , 400813 , 539506 , 518869 , 728166 , 462096 , 734489 , 766574 , 701049 , 592735 , 387175 , 556405 , 578472 , 458561 , 400817 , 444579 , 705450 , 709359 , 663485 , 574504 , 478793 , 515160 , 475855 , 556847 , 807522 , 389532 , 391964 , 580321 , 577377 , 582218 , 548743 , 563226 , 383643 , 401902 , 514435 , 518854 , 563055 , 567431 , 663988 , 545676 , 747515 , 443685 , 484441 , 663372 , 667839 , 743065 , 451445 , 739532 , 490874 , 450318 , 514457 , 814901 , 521131 , 513047 );
Copy
4
2.45 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
383643
387175
389532
391964
400813
400817
401902
437218
443685
444579
450318
451445
455026
458561
462096
475855
477990
478793
484441
490874
513047
514435
514457
515160
518854
518869
521131
535632
539506
545676
548743
556405
556847
558004
563055
563226
567431
569001
574504
577377
578472
580321
582218
592735
594782
601689
663372
663485
663988
667839
701049
705450
709359
714145
726468
728166
734489
739532
743065
743126
747515
759737
760281
766574
789252
800771
807522
811931
814901
817385
]
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 (383643 , 387175 , 389532 , 391964 , 400813 , 400817 , 401902 , 437218 , 443685 , 444579 , 450318 , 451445 , 455026 , 458561 , 462096 , 475855 , 477990 , 478793 , 484441 , 490874 , 513047 , 514435 , 514457 , 515160 , 518854 , 518869 , 521131 , 535632 , 539506 , 545676 , 548743 , 556405 , 556847 , 558004 , 563055 , 563226 , 567431 , 569001 , 574504 , 577377 , 578472 , 580321 , 582218 , 592735 , 594782 , 601689 , 663372 , 663485 , 663988 , 667839 , 701049 , 705450 , 709359 , 714145 , 726468 , 728166 , 734489 , 739532 , 743065 , 743126 , 747515 , 759737 , 760281 , 766574 , 789252 , 800771 , 807522 , 811931 , 814901 , 817385 );
Copy
5
136.59 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
383643
387175
389532
391964
400813
400817
401902
437218
443685
444579
450318
451445
455026
458561
462096
475855
477990
478793
484441
490874
513047
514435
514457
515160
518854
518869
521131
535632
539506
545676
548743
556405
556847
558004
563055
563226
567431
569001
574504
577377
578472
580321
582218
592735
594782
601689
663372
663485
663988
667839
701049
705450
709359
714145
726468
728166
734489
739532
743065
743126
747515
759737
760281
766574
789252
800771
807522
811931
814901
817385
]
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 (383643 , 387175 , 389532 , 391964 , 400813 , 400817 , 401902 , 437218 , 443685 , 444579 , 450318 , 451445 , 455026 , 458561 , 462096 , 475855 , 477990 , 478793 , 484441 , 490874 , 513047 , 514435 , 514457 , 515160 , 518854 , 518869 , 521131 , 535632 , 539506 , 545676 , 548743 , 556405 , 556847 , 558004 , 563055 , 563226 , 567431 , 569001 , 574504 , 577377 , 578472 , 580321 , 582218 , 592735 , 594782 , 601689 , 663372 , 663485 , 663988 , 667839 , 701049 , 705450 , 709359 , 714145 , 726468 , 728166 , 734489 , 739532 , 743065 , 743126 , 747515 , 759737 , 760281 , 766574 , 789252 , 800771 , 807522 , 811931 , 814901 , 817385 );
Copy