3
15.31 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
789665
443822
472910
434353
446718
420270
430709
464442
472319
443745
507423
493221
484475
487343
505843
484227
505018
531072
394197
528027
431112
486685
524951
534845
493102
559577
581902
583533
625342
608084
615961
420925
472931
425998
434638
428293
534377
623644
604960
608358
470247
474024
470248
448845
466090
528252
541594
484463
431793
511046
542945
519433
421287
429999
412583
437868
540511
541633
574244
574258
448839
555565
444918
455392
542989
510668
439801
434601
415160
491823
541804
549239
565783
]
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 (789665 , 443822 , 472910 , 434353 , 446718 , 420270 , 430709 , 464442 , 472319 , 443745 , 507423 , 493221 , 484475 , 487343 , 505843 , 484227 , 505018 , 531072 , 394197 , 528027 , 431112 , 486685 , 524951 , 534845 , 493102 , 559577 , 581902 , 583533 , 625342 , 608084 , 615961 , 420925 , 472931 , 425998 , 434638 , 428293 , 534377 , 623644 , 604960 , 608358 , 470247 , 474024 , 470248 , 448845 , 466090 , 528252 , 541594 , 484463 , 431793 , 511046 , 542945 , 519433 , 421287 , 429999 , 412583 , 437868 , 540511 , 541633 , 574244 , 574258 , 448839 , 555565 , 444918 , 455392 , 542989 , 510668 , 439801 , 434601 , 415160 , 491823 , 541804 , 549239 , 565783 );
Copy
4
2.25 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
394197
412583
415160
420270
420925
421287
425998
428293
429999
430709
431112
431793
434353
434601
434638
437868
439801
443745
443822
444918
446718
448839
448845
455392
464442
466090
470247
470248
472319
472910
472931
474024
484227
484463
484475
486685
487343
491823
493102
493221
505018
505843
507423
510668
511046
519433
524951
528027
528252
531072
534377
534845
540511
541594
541633
541804
542945
542989
549239
555565
559577
565783
574244
574258
581902
583533
604960
608084
608358
615961
623644
625342
789665
]
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 (394197 , 412583 , 415160 , 420270 , 420925 , 421287 , 425998 , 428293 , 429999 , 430709 , 431112 , 431793 , 434353 , 434601 , 434638 , 437868 , 439801 , 443745 , 443822 , 444918 , 446718 , 448839 , 448845 , 455392 , 464442 , 466090 , 470247 , 470248 , 472319 , 472910 , 472931 , 474024 , 484227 , 484463 , 484475 , 486685 , 487343 , 491823 , 493102 , 493221 , 505018 , 505843 , 507423 , 510668 , 511046 , 519433 , 524951 , 528027 , 528252 , 531072 , 534377 , 534845 , 540511 , 541594 , 541633 , 541804 , 542945 , 542989 , 549239 , 555565 , 559577 , 565783 , 574244 , 574258 , 581902 , 583533 , 604960 , 608084 , 608358 , 615961 , 623644 , 625342 , 789665 );
Copy
5
111.18 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
394197
412583
415160
420270
420925
421287
425998
428293
429999
430709
431112
431793
434353
434601
434638
437868
439801
443745
443822
444918
446718
448839
448845
455392
464442
466090
470247
470248
472319
472910
472931
474024
484227
484463
484475
486685
487343
491823
493102
493221
505018
505843
507423
510668
511046
519433
524951
528027
528252
531072
534377
534845
540511
541594
541633
541804
542945
542989
549239
555565
559577
565783
574244
574258
581902
583533
604960
608084
608358
615961
623644
625342
789665
]
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 (394197 , 412583 , 415160 , 420270 , 420925 , 421287 , 425998 , 428293 , 429999 , 430709 , 431112 , 431793 , 434353 , 434601 , 434638 , 437868 , 439801 , 443745 , 443822 , 444918 , 446718 , 448839 , 448845 , 455392 , 464442 , 466090 , 470247 , 470248 , 472319 , 472910 , 472931 , 474024 , 484227 , 484463 , 484475 , 486685 , 487343 , 491823 , 493102 , 493221 , 505018 , 505843 , 507423 , 510668 , 511046 , 519433 , 524951 , 528027 , 528252 , 531072 , 534377 , 534845 , 540511 , 541594 , 541633 , 541804 , 542945 , 542989 , 549239 , 555565 , 559577 , 565783 , 574244 , 574258 , 581902 , 583533 , 604960 , 608084 , 608358 , 615961 , 623644 , 625342 , 789665 );
Copy