3
17.02 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
539650
503018
510730
550593
718754
715561
648295
696311
716121
722035
641593
631563
798918
799473
764704
618222
498703
506308
518057
425083
817453
540587
581020
541568
545181
720956
706535
670534
563102
617489
802236
753051
785179
804860
447156
510230
522615
503011
335472
469728
492123
506118
541558
584590
671429
599783
607206
635687
435970
466551
478712
525984
459344
465498
488154
513434
532509
689149
592971
607661
592687
586042
486567
503826
601836
759472
811040
527371
501212
]
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 (539650 , 503018 , 510730 , 550593 , 718754 , 715561 , 648295 , 696311 , 716121 , 722035 , 641593 , 631563 , 798918 , 799473 , 764704 , 618222 , 498703 , 506308 , 518057 , 425083 , 817453 , 540587 , 581020 , 541568 , 545181 , 720956 , 706535 , 670534 , 563102 , 617489 , 802236 , 753051 , 785179 , 804860 , 447156 , 510230 , 522615 , 503011 , 335472 , 469728 , 492123 , 506118 , 541558 , 584590 , 671429 , 599783 , 607206 , 635687 , 435970 , 466551 , 478712 , 525984 , 459344 , 465498 , 488154 , 513434 , 532509 , 689149 , 592971 , 607661 , 592687 , 586042 , 486567 , 503826 , 601836 , 759472 , 811040 , 527371 , 501212 );
Copy
4
2.74 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
335472
425083
435970
447156
459344
465498
466551
469728
478712
486567
488154
492123
498703
501212
503011
503018
503826
506118
506308
510230
510730
513434
518057
522615
525984
527371
532509
539650
540587
541558
541568
545181
550593
563102
581020
584590
586042
592687
592971
599783
601836
607206
607661
617489
618222
631563
635687
641593
648295
670534
671429
689149
696311
706535
715561
716121
718754
720956
722035
753051
759472
764704
785179
798918
799473
802236
804860
811040
817453
]
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 (335472 , 425083 , 435970 , 447156 , 459344 , 465498 , 466551 , 469728 , 478712 , 486567 , 488154 , 492123 , 498703 , 501212 , 503011 , 503018 , 503826 , 506118 , 506308 , 510230 , 510730 , 513434 , 518057 , 522615 , 525984 , 527371 , 532509 , 539650 , 540587 , 541558 , 541568 , 545181 , 550593 , 563102 , 581020 , 584590 , 586042 , 592687 , 592971 , 599783 , 601836 , 607206 , 607661 , 617489 , 618222 , 631563 , 635687 , 641593 , 648295 , 670534 , 671429 , 689149 , 696311 , 706535 , 715561 , 716121 , 718754 , 720956 , 722035 , 753051 , 759472 , 764704 , 785179 , 798918 , 799473 , 802236 , 804860 , 811040 , 817453 );
Copy
5
103.48 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
335472
425083
435970
447156
459344
465498
466551
469728
478712
486567
488154
492123
498703
501212
503011
503018
503826
506118
506308
510230
510730
513434
518057
522615
525984
527371
532509
539650
540587
541558
541568
545181
550593
563102
581020
584590
586042
592687
592971
599783
601836
607206
607661
617489
618222
631563
635687
641593
648295
670534
671429
689149
696311
706535
715561
716121
718754
720956
722035
753051
759472
764704
785179
798918
799473
802236
804860
811040
817453
]
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 (335472 , 425083 , 435970 , 447156 , 459344 , 465498 , 466551 , 469728 , 478712 , 486567 , 488154 , 492123 , 498703 , 501212 , 503011 , 503018 , 503826 , 506118 , 506308 , 510230 , 510730 , 513434 , 518057 , 522615 , 525984 , 527371 , 532509 , 539650 , 540587 , 541558 , 541568 , 545181 , 550593 , 563102 , 581020 , 584590 , 586042 , 592687 , 592971 , 599783 , 601836 , 607206 , 607661 , 617489 , 618222 , 631563 , 635687 , 641593 , 648295 , 670534 , 671429 , 689149 , 696311 , 706535 , 715561 , 716121 , 718754 , 720956 , 722035 , 753051 , 759472 , 764704 , 785179 , 798918 , 799473 , 802236 , 804860 , 811040 , 817453 );
Copy