3
13.92 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
416668
474879
117610
487416
445406
502457
556906
492181
512933
441122
441074
509820
500263
469125
248347
441160
451337
412814
432673
449970
449586
493748
448351
449930
453221
583474
340635
416724
416703
414675
424765
400791
478057
520907
485546
441027
478514
483737
507696
476055
430366
385755
468146
480406
509833
511857
415966
467623
516508
420918
391559
475508
475984
462381
468242
469617
470414
416635
439029
543842
613515
621259
]
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 (416668 , 474879 , 117610 , 487416 , 445406 , 502457 , 556906 , 492181 , 512933 , 441122 , 441074 , 509820 , 500263 , 469125 , 248347 , 441160 , 451337 , 412814 , 432673 , 449970 , 449586 , 493748 , 448351 , 449930 , 453221 , 583474 , 340635 , 416724 , 416703 , 414675 , 424765 , 400791 , 478057 , 520907 , 485546 , 441027 , 478514 , 483737 , 507696 , 476055 , 430366 , 385755 , 468146 , 480406 , 509833 , 511857 , 415966 , 467623 , 516508 , 420918 , 391559 , 475508 , 475984 , 462381 , 468242 , 469617 , 470414 , 416635 , 439029 , 543842 , 613515 , 621259 );
Copy
4
2.78 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
117610
248347
340635
385755
391559
400791
412814
414675
415966
416635
416668
416703
416724
420918
424765
430366
432673
439029
441027
441074
441122
441160
445406
448351
449586
449930
449970
451337
453221
462381
467623
468146
468242
469125
469617
470414
474879
475508
475984
476055
478057
478514
480406
483737
485546
487416
492181
493748
500263
502457
507696
509820
509833
511857
512933
516508
520907
543842
556906
583474
613515
621259
]
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 (117610 , 248347 , 340635 , 385755 , 391559 , 400791 , 412814 , 414675 , 415966 , 416635 , 416668 , 416703 , 416724 , 420918 , 424765 , 430366 , 432673 , 439029 , 441027 , 441074 , 441122 , 441160 , 445406 , 448351 , 449586 , 449930 , 449970 , 451337 , 453221 , 462381 , 467623 , 468146 , 468242 , 469125 , 469617 , 470414 , 474879 , 475508 , 475984 , 476055 , 478057 , 478514 , 480406 , 483737 , 485546 , 487416 , 492181 , 493748 , 500263 , 502457 , 507696 , 509820 , 509833 , 511857 , 512933 , 516508 , 520907 , 543842 , 556906 , 583474 , 613515 , 621259 );
Copy
5
98.50 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
117610
248347
340635
385755
391559
400791
412814
414675
415966
416635
416668
416703
416724
420918
424765
430366
432673
439029
441027
441074
441122
441160
445406
448351
449586
449930
449970
451337
453221
462381
467623
468146
468242
469125
469617
470414
474879
475508
475984
476055
478057
478514
480406
483737
485546
487416
492181
493748
500263
502457
507696
509820
509833
511857
512933
516508
520907
543842
556906
583474
613515
621259
]
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 (117610 , 248347 , 340635 , 385755 , 391559 , 400791 , 412814 , 414675 , 415966 , 416635 , 416668 , 416703 , 416724 , 420918 , 424765 , 430366 , 432673 , 439029 , 441027 , 441074 , 441122 , 441160 , 445406 , 448351 , 449586 , 449930 , 449970 , 451337 , 453221 , 462381 , 467623 , 468146 , 468242 , 469125 , 469617 , 470414 , 474879 , 475508 , 475984 , 476055 , 478057 , 478514 , 480406 , 483737 , 485546 , 487416 , 492181 , 493748 , 500263 , 502457 , 507696 , 509820 , 509833 , 511857 , 512933 , 516508 , 520907 , 543842 , 556906 , 583474 , 613515 , 621259 );
Copy