3
16.34 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
599547
620215
599144
609280
605996
621277
503116
486501
96581
402185
434878
390293
469059
449175
511783
587960
465074
572828
601717
597116
568055
580830
552799
571905
474188
632569
516846
425775
565718
611535
528040
28720
436235
569159
568970
591141
397400
619099
606958
569960
428157
603523
560189
546347
663347
620048
447089
486621
615429
602916
680824
565235
597642
507308
514901
561998
595243
413274
516854
513047
527087
499112
]
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 (599547 , 620215 , 599144 , 609280 , 605996 , 621277 , 503116 , 486501 , 96581 , 402185 , 434878 , 390293 , 469059 , 449175 , 511783 , 587960 , 465074 , 572828 , 601717 , 597116 , 568055 , 580830 , 552799 , 571905 , 474188 , 632569 , 516846 , 425775 , 565718 , 611535 , 528040 , 28720 , 436235 , 569159 , 568970 , 591141 , 397400 , 619099 , 606958 , 569960 , 428157 , 603523 , 560189 , 546347 , 663347 , 620048 , 447089 , 486621 , 615429 , 602916 , 680824 , 565235 , 597642 , 507308 , 514901 , 561998 , 595243 , 413274 , 516854 , 513047 , 527087 , 499112 );
Copy
4
3.18 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
28720
96581
390293
397400
402185
413274
425775
428157
434878
436235
447089
449175
465074
469059
474188
486501
486621
499112
503116
507308
511783
513047
514901
516846
516854
527087
528040
546347
552799
560189
561998
565235
565718
568055
568970
569159
569960
571905
572828
580830
587960
591141
595243
597116
597642
599144
599547
601717
602916
603523
605996
606958
609280
611535
615429
619099
620048
620215
621277
632569
663347
680824
]
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 (28720 , 96581 , 390293 , 397400 , 402185 , 413274 , 425775 , 428157 , 434878 , 436235 , 447089 , 449175 , 465074 , 469059 , 474188 , 486501 , 486621 , 499112 , 503116 , 507308 , 511783 , 513047 , 514901 , 516846 , 516854 , 527087 , 528040 , 546347 , 552799 , 560189 , 561998 , 565235 , 565718 , 568055 , 568970 , 569159 , 569960 , 571905 , 572828 , 580830 , 587960 , 591141 , 595243 , 597116 , 597642 , 599144 , 599547 , 601717 , 602916 , 603523 , 605996 , 606958 , 609280 , 611535 , 615429 , 619099 , 620048 , 620215 , 621277 , 632569 , 663347 , 680824 );
Copy
5
136.60 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
28720
96581
390293
397400
402185
413274
425775
428157
434878
436235
447089
449175
465074
469059
474188
486501
486621
499112
503116
507308
511783
513047
514901
516846
516854
527087
528040
546347
552799
560189
561998
565235
565718
568055
568970
569159
569960
571905
572828
580830
587960
591141
595243
597116
597642
599144
599547
601717
602916
603523
605996
606958
609280
611535
615429
619099
620048
620215
621277
632569
663347
680824
]
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 (28720 , 96581 , 390293 , 397400 , 402185 , 413274 , 425775 , 428157 , 434878 , 436235 , 447089 , 449175 , 465074 , 469059 , 474188 , 486501 , 486621 , 499112 , 503116 , 507308 , 511783 , 513047 , 514901 , 516846 , 516854 , 527087 , 528040 , 546347 , 552799 , 560189 , 561998 , 565235 , 565718 , 568055 , 568970 , 569159 , 569960 , 571905 , 572828 , 580830 , 587960 , 591141 , 595243 , 597116 , 597642 , 599144 , 599547 , 601717 , 602916 , 603523 , 605996 , 606958 , 609280 , 611535 , 615429 , 619099 , 620048 , 620215 , 621277 , 632569 , 663347 , 680824 );
Copy