3
10.67 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
304193
412639
398719
506402
765220
444081
523552
458721
460017
499577
504003
504891
533141
492287
616866
427701
441363
422174
472577
457383
486840
483868
496579
558686
567515
671886
451142
510230
499953
534657
410129
411909
449304
525728
551141
645893
602146
604634
603993
428076
423802
526534
485258
388957
425281
419245
448263
561946
613851
448014
480183
491805
525399
424324
591676
484066
459078
623920
529206
593935
550705
667233
641418
584907
587264
598161
538027
]
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 (304193 , 412639 , 398719 , 506402 , 765220 , 444081 , 523552 , 458721 , 460017 , 499577 , 504003 , 504891 , 533141 , 492287 , 616866 , 427701 , 441363 , 422174 , 472577 , 457383 , 486840 , 483868 , 496579 , 558686 , 567515 , 671886 , 451142 , 510230 , 499953 , 534657 , 410129 , 411909 , 449304 , 525728 , 551141 , 645893 , 602146 , 604634 , 603993 , 428076 , 423802 , 526534 , 485258 , 388957 , 425281 , 419245 , 448263 , 561946 , 613851 , 448014 , 480183 , 491805 , 525399 , 424324 , 591676 , 484066 , 459078 , 623920 , 529206 , 593935 , 550705 , 667233 , 641418 , 584907 , 587264 , 598161 , 538027 );
Copy
4
2.50 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
304193
388957
398719
410129
411909
412639
419245
422174
423802
424324
425281
427701
428076
441363
444081
448014
448263
449304
451142
457383
458721
459078
460017
472577
480183
483868
484066
485258
486840
491805
492287
496579
499577
499953
504003
504891
506402
510230
523552
525399
525728
526534
529206
533141
534657
538027
550705
551141
558686
561946
567515
584907
587264
591676
593935
598161
602146
603993
604634
613851
616866
623920
641418
645893
667233
671886
765220
]
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 (304193 , 388957 , 398719 , 410129 , 411909 , 412639 , 419245 , 422174 , 423802 , 424324 , 425281 , 427701 , 428076 , 441363 , 444081 , 448014 , 448263 , 449304 , 451142 , 457383 , 458721 , 459078 , 460017 , 472577 , 480183 , 483868 , 484066 , 485258 , 486840 , 491805 , 492287 , 496579 , 499577 , 499953 , 504003 , 504891 , 506402 , 510230 , 523552 , 525399 , 525728 , 526534 , 529206 , 533141 , 534657 , 538027 , 550705 , 551141 , 558686 , 561946 , 567515 , 584907 , 587264 , 591676 , 593935 , 598161 , 602146 , 603993 , 604634 , 613851 , 616866 , 623920 , 641418 , 645893 , 667233 , 671886 , 765220 );
Copy
5
146.78 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
304193
388957
398719
410129
411909
412639
419245
422174
423802
424324
425281
427701
428076
441363
444081
448014
448263
449304
451142
457383
458721
459078
460017
472577
480183
483868
484066
485258
486840
491805
492287
496579
499577
499953
504003
504891
506402
510230
523552
525399
525728
526534
529206
533141
534657
538027
550705
551141
558686
561946
567515
584907
587264
591676
593935
598161
602146
603993
604634
613851
616866
623920
641418
645893
667233
671886
765220
]
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 (304193 , 388957 , 398719 , 410129 , 411909 , 412639 , 419245 , 422174 , 423802 , 424324 , 425281 , 427701 , 428076 , 441363 , 444081 , 448014 , 448263 , 449304 , 451142 , 457383 , 458721 , 459078 , 460017 , 472577 , 480183 , 483868 , 484066 , 485258 , 486840 , 491805 , 492287 , 496579 , 499577 , 499953 , 504003 , 504891 , 506402 , 510230 , 523552 , 525399 , 525728 , 526534 , 529206 , 533141 , 534657 , 538027 , 550705 , 551141 , 558686 , 561946 , 567515 , 584907 , 587264 , 591676 , 593935 , 598161 , 602146 , 603993 , 604634 , 613851 , 616866 , 623920 , 641418 , 645893 , 667233 , 671886 , 765220 );
Copy