3
10.21 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
392790
324241
563916
570525
572261
551072
552328
523462
625088
455483
490755
507783
564784
529496
440848
446625
505995
538563
560574
579477
563718
473617
198001
522510
526649
528834
491686
452696
458011
690718
437559
471518
401005
453568
490394
505796
561288
549733
637401
465767
447023
522710
489601
429748
443114
492134
474405
565578
543088
545072
563166
621543
609814
428814
516524
519337
501120
591599
588078
439730
559948
575447
441039
553485
]
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 (392790 , 324241 , 563916 , 570525 , 572261 , 551072 , 552328 , 523462 , 625088 , 455483 , 490755 , 507783 , 564784 , 529496 , 440848 , 446625 , 505995 , 538563 , 560574 , 579477 , 563718 , 473617 , 198001 , 522510 , 526649 , 528834 , 491686 , 452696 , 458011 , 690718 , 437559 , 471518 , 401005 , 453568 , 490394 , 505796 , 561288 , 549733 , 637401 , 465767 , 447023 , 522710 , 489601 , 429748 , 443114 , 492134 , 474405 , 565578 , 543088 , 545072 , 563166 , 621543 , 609814 , 428814 , 516524 , 519337 , 501120 , 591599 , 588078 , 439730 , 559948 , 575447 , 441039 , 553485 );
Copy
4
211.10 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
198001
324241
392790
401005
428814
429748
437559
439730
440848
441039
443114
446625
447023
452696
453568
455483
458011
465767
471518
473617
474405
489601
490394
490755
491686
492134
501120
505796
505995
507783
516524
519337
522510
522710
523462
526649
528834
529496
538563
543088
545072
549733
551072
552328
553485
559948
560574
561288
563166
563718
563916
564784
565578
570525
572261
575447
579477
588078
591599
609814
621543
625088
637401
690718
]
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 (198001 , 324241 , 392790 , 401005 , 428814 , 429748 , 437559 , 439730 , 440848 , 441039 , 443114 , 446625 , 447023 , 452696 , 453568 , 455483 , 458011 , 465767 , 471518 , 473617 , 474405 , 489601 , 490394 , 490755 , 491686 , 492134 , 501120 , 505796 , 505995 , 507783 , 516524 , 519337 , 522510 , 522710 , 523462 , 526649 , 528834 , 529496 , 538563 , 543088 , 545072 , 549733 , 551072 , 552328 , 553485 , 559948 , 560574 , 561288 , 563166 , 563718 , 563916 , 564784 , 565578 , 570525 , 572261 , 575447 , 579477 , 588078 , 591599 , 609814 , 621543 , 625088 , 637401 , 690718 );
Copy
5
120.72 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
198001
324241
392790
401005
428814
429748
437559
439730
440848
441039
443114
446625
447023
452696
453568
455483
458011
465767
471518
473617
474405
489601
490394
490755
491686
492134
501120
505796
505995
507783
516524
519337
522510
522710
523462
526649
528834
529496
538563
543088
545072
549733
551072
552328
553485
559948
560574
561288
563166
563718
563916
564784
565578
570525
572261
575447
579477
588078
591599
609814
621543
625088
637401
690718
]
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 (198001 , 324241 , 392790 , 401005 , 428814 , 429748 , 437559 , 439730 , 440848 , 441039 , 443114 , 446625 , 447023 , 452696 , 453568 , 455483 , 458011 , 465767 , 471518 , 473617 , 474405 , 489601 , 490394 , 490755 , 491686 , 492134 , 501120 , 505796 , 505995 , 507783 , 516524 , 519337 , 522510 , 522710 , 523462 , 526649 , 528834 , 529496 , 538563 , 543088 , 545072 , 549733 , 551072 , 552328 , 553485 , 559948 , 560574 , 561288 , 563166 , 563718 , 563916 , 564784 , 565578 , 570525 , 572261 , 575447 , 579477 , 588078 , 591599 , 609814 , 621543 , 625088 , 637401 , 690718 );
Copy