3
10.00 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
818949
818993
818978
819030
797236
797266
729124
818991
824171
724077
707541
757241
733061
757258
784282
797272
824269
531048
818984
402515
819018
578652
818968
797249
733412
757228
797263
817796
473260
818961
788609
451670
572630
452211
412772
467109
470538
465027
470513
472085
432928
419631
544305
445404
463090
470532
444487
456525
457182
465061
457341
435811
449666
447072
529265
457349
437523
470449
417866
439828
465054
493181
513859
521535
428315
467602
483555
595795
]
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 (818949 , 818993 , 818978 , 819030 , 797236 , 797266 , 729124 , 818991 , 824171 , 724077 , 707541 , 757241 , 733061 , 757258 , 784282 , 797272 , 824269 , 531048 , 818984 , 402515 , 819018 , 578652 , 818968 , 797249 , 733412 , 757228 , 797263 , 817796 , 473260 , 818961 , 788609 , 451670 , 572630 , 452211 , 412772 , 467109 , 470538 , 465027 , 470513 , 472085 , 432928 , 419631 , 544305 , 445404 , 463090 , 470532 , 444487 , 456525 , 457182 , 465061 , 457341 , 435811 , 449666 , 447072 , 529265 , 457349 , 437523 , 470449 , 417866 , 439828 , 465054 , 493181 , 513859 , 521535 , 428315 , 467602 , 483555 , 595795 );
Copy
4
2.57 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
402515
412772
417866
419631
428315
432928
435811
437523
439828
444487
445404
447072
449666
451670
452211
456525
457182
457341
457349
463090
465027
465054
465061
467109
467602
470449
470513
470532
470538
472085
473260
483555
493181
513859
521535
529265
531048
544305
572630
578652
595795
707541
724077
729124
733061
733412
757228
757241
757258
784282
788609
797236
797249
797263
797266
797272
817796
818949
818961
818968
818978
818984
818991
818993
819018
819030
824171
824269
]
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 (402515 , 412772 , 417866 , 419631 , 428315 , 432928 , 435811 , 437523 , 439828 , 444487 , 445404 , 447072 , 449666 , 451670 , 452211 , 456525 , 457182 , 457341 , 457349 , 463090 , 465027 , 465054 , 465061 , 467109 , 467602 , 470449 , 470513 , 470532 , 470538 , 472085 , 473260 , 483555 , 493181 , 513859 , 521535 , 529265 , 531048 , 544305 , 572630 , 578652 , 595795 , 707541 , 724077 , 729124 , 733061 , 733412 , 757228 , 757241 , 757258 , 784282 , 788609 , 797236 , 797249 , 797263 , 797266 , 797272 , 817796 , 818949 , 818961 , 818968 , 818978 , 818984 , 818991 , 818993 , 819018 , 819030 , 824171 , 824269 );
Copy
5
115.41 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
402515
412772
417866
419631
428315
432928
435811
437523
439828
444487
445404
447072
449666
451670
452211
456525
457182
457341
457349
463090
465027
465054
465061
467109
467602
470449
470513
470532
470538
472085
473260
483555
493181
513859
521535
529265
531048
544305
572630
578652
595795
707541
724077
729124
733061
733412
757228
757241
757258
784282
788609
797236
797249
797263
797266
797272
817796
818949
818961
818968
818978
818984
818991
818993
819018
819030
824171
824269
]
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 (402515 , 412772 , 417866 , 419631 , 428315 , 432928 , 435811 , 437523 , 439828 , 444487 , 445404 , 447072 , 449666 , 451670 , 452211 , 456525 , 457182 , 457341 , 457349 , 463090 , 465027 , 465054 , 465061 , 467109 , 467602 , 470449 , 470513 , 470532 , 470538 , 472085 , 473260 , 483555 , 493181 , 513859 , 521535 , 529265 , 531048 , 544305 , 572630 , 578652 , 595795 , 707541 , 724077 , 729124 , 733061 , 733412 , 757228 , 757241 , 757258 , 784282 , 788609 , 797236 , 797249 , 797263 , 797266 , 797272 , 817796 , 818949 , 818961 , 818968 , 818978 , 818984 , 818991 , 818993 , 819018 , 819030 , 824171 , 824269 );
Copy