3
11.79 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
820017
759782
738877
750941
749284
738960
714471
526826
825109
518483
618883
525768
401477
185567
825312
661107
185153
386080
145335
743129
825210
825002
450763
357753
577161
740007
742993
390219
403236
402607
409125
500689
525251
519887
460134
402601
409291
481652
510041
504339
454939
487010
357806
510049
357886
404032
476713
418400
451961
462747
526821
489318
510037
184985
447357
413300
415637
413137
418421
526834
510043
526824
449254
443380
513328
415623
511902
519886
601630
]
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 (820017 , 759782 , 738877 , 750941 , 749284 , 738960 , 714471 , 526826 , 825109 , 518483 , 618883 , 525768 , 401477 , 185567 , 825312 , 661107 , 185153 , 386080 , 145335 , 743129 , 825210 , 825002 , 450763 , 357753 , 577161 , 740007 , 742993 , 390219 , 403236 , 402607 , 409125 , 500689 , 525251 , 519887 , 460134 , 402601 , 409291 , 481652 , 510041 , 504339 , 454939 , 487010 , 357806 , 510049 , 357886 , 404032 , 476713 , 418400 , 451961 , 462747 , 526821 , 489318 , 510037 , 184985 , 447357 , 413300 , 415637 , 413137 , 418421 , 526834 , 510043 , 526824 , 449254 , 443380 , 513328 , 415623 , 511902 , 519886 , 601630 );
Copy
4
3.46 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
145335
184985
185153
185567
357753
357806
357886
386080
390219
401477
402601
402607
403236
404032
409125
409291
413137
413300
415623
415637
418400
418421
443380
447357
449254
450763
451961
454939
460134
462747
476713
481652
487010
489318
500689
504339
510037
510041
510043
510049
511902
513328
518483
519886
519887
525251
525768
526821
526824
526826
526834
577161
601630
618883
661107
714471
738877
738960
740007
742993
743129
749284
750941
759782
820017
825002
825109
825210
825312
]
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 (145335 , 184985 , 185153 , 185567 , 357753 , 357806 , 357886 , 386080 , 390219 , 401477 , 402601 , 402607 , 403236 , 404032 , 409125 , 409291 , 413137 , 413300 , 415623 , 415637 , 418400 , 418421 , 443380 , 447357 , 449254 , 450763 , 451961 , 454939 , 460134 , 462747 , 476713 , 481652 , 487010 , 489318 , 500689 , 504339 , 510037 , 510041 , 510043 , 510049 , 511902 , 513328 , 518483 , 519886 , 519887 , 525251 , 525768 , 526821 , 526824 , 526826 , 526834 , 577161 , 601630 , 618883 , 661107 , 714471 , 738877 , 738960 , 740007 , 742993 , 743129 , 749284 , 750941 , 759782 , 820017 , 825002 , 825109 , 825210 , 825312 );
Copy
5
135.82 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
145335
184985
185153
185567
357753
357806
357886
386080
390219
401477
402601
402607
403236
404032
409125
409291
413137
413300
415623
415637
418400
418421
443380
447357
449254
450763
451961
454939
460134
462747
476713
481652
487010
489318
500689
504339
510037
510041
510043
510049
511902
513328
518483
519886
519887
525251
525768
526821
526824
526826
526834
577161
601630
618883
661107
714471
738877
738960
740007
742993
743129
749284
750941
759782
820017
825002
825109
825210
825312
]
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 (145335 , 184985 , 185153 , 185567 , 357753 , 357806 , 357886 , 386080 , 390219 , 401477 , 402601 , 402607 , 403236 , 404032 , 409125 , 409291 , 413137 , 413300 , 415623 , 415637 , 418400 , 418421 , 443380 , 447357 , 449254 , 450763 , 451961 , 454939 , 460134 , 462747 , 476713 , 481652 , 487010 , 489318 , 500689 , 504339 , 510037 , 510041 , 510043 , 510049 , 511902 , 513328 , 518483 , 519886 , 519887 , 525251 , 525768 , 526821 , 526824 , 526826 , 526834 , 577161 , 601630 , 618883 , 661107 , 714471 , 738877 , 738960 , 740007 , 742993 , 743129 , 749284 , 750941 , 759782 , 820017 , 825002 , 825109 , 825210 , 825312 );
Copy