4
8.64 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
648053
703907
769387
777919
705366
739834
662195
638162
797429
812859
785294
743468
564627
812861
731679
790072
812856
662062
578997
711937
647138
692604
811635
549479
772067
581510
704914
473939
790019
703385
730776
749464
767847
753208
805010
808258
722978
727907
758556
525548
710891
797931
797948
799528
541122
557096
808780
777250
801576
765049
750760
568821
800212
803444
695828
558081
802701
784261
529386
626338
780436
761602
588281
528264
]
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 (648053 , 703907 , 769387 , 777919 , 705366 , 739834 , 662195 , 638162 , 797429 , 812859 , 785294 , 743468 , 564627 , 812861 , 731679 , 790072 , 812856 , 662062 , 578997 , 711937 , 647138 , 692604 , 811635 , 549479 , 772067 , 581510 , 704914 , 473939 , 790019 , 703385 , 730776 , 749464 , 767847 , 753208 , 805010 , 808258 , 722978 , 727907 , 758556 , 525548 , 710891 , 797931 , 797948 , 799528 , 541122 , 557096 , 808780 , 777250 , 801576 , 765049 , 750760 , 568821 , 800212 , 803444 , 695828 , 558081 , 802701 , 784261 , 529386 , 626338 , 780436 , 761602 , 588281 , 528264 );
Copy
5
3.00 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
473939
525548
528264
529386
541122
549479
557096
564627
568821
578997
581510
588281
626338
638162
647138
648053
662062
662195
692604
695828
703385
703907
704914
705366
710891
711937
722978
727907
730776
731679
739834
743468
749464
750760
753208
758556
761602
765049
767847
769387
772067
777250
777919
780436
784261
785294
790019
790072
797429
797931
797948
799528
800212
801576
802701
803444
805010
808258
808780
811635
812856
812859
812861
]
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 (473939 , 525548 , 528264 , 529386 , 541122 , 549479 , 557096 , 564627 , 568821 , 578997 , 581510 , 588281 , 626338 , 638162 , 647138 , 648053 , 662062 , 662195 , 692604 , 695828 , 703385 , 703907 , 704914 , 705366 , 710891 , 711937 , 722978 , 727907 , 730776 , 731679 , 739834 , 743468 , 749464 , 750760 , 753208 , 758556 , 761602 , 765049 , 767847 , 769387 , 772067 , 777250 , 777919 , 780436 , 784261 , 785294 , 790019 , 790072 , 797429 , 797931 , 797948 , 799528 , 800212 , 801576 , 802701 , 803444 , 805010 , 808258 , 808780 , 811635 , 812856 , 812859 , 812861 );
Copy
6
85.52 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
473939
525548
528264
529386
541122
549479
557096
564627
568821
578997
581510
588281
626338
638162
647138
648053
662062
662195
692604
695828
703385
703907
704914
705366
710891
711937
722978
727907
730776
731679
739834
743468
749464
750760
753208
758556
761602
765049
767847
769387
772067
777250
777919
780436
784261
785294
790019
790072
797429
797931
797948
799528
800212
801576
802701
803444
805010
808258
808780
811635
812856
812859
812861
]
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 (473939 , 525548 , 528264 , 529386 , 541122 , 549479 , 557096 , 564627 , 568821 , 578997 , 581510 , 588281 , 626338 , 638162 , 647138 , 648053 , 662062 , 662195 , 692604 , 695828 , 703385 , 703907 , 704914 , 705366 , 710891 , 711937 , 722978 , 727907 , 730776 , 731679 , 739834 , 743468 , 749464 , 750760 , 753208 , 758556 , 761602 , 765049 , 767847 , 769387 , 772067 , 777250 , 777919 , 780436 , 784261 , 785294 , 790019 , 790072 , 797429 , 797931 , 797948 , 799528 , 800212 , 801576 , 802701 , 803444 , 805010 , 808258 , 808780 , 811635 , 812856 , 812859 , 812861 );
Copy