3
10.27 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
428148
399386
131975
321297
397482
407872
399023
491143
408217
145424
397489
421068
411925
419065
386648
410413
424985
91928
384904
401457
475256
429952
478599
398531
525948
526968
187699
560599
386623
396541
450204
449230
389487
548697
411408
430703
492341
391428
428653
405182
407973
389519
404281
546626
472905
432834
406179
428814
430701
390147
417883
519058
400708
408138
557526
425809
601650
439490
416166
504098
605545
467611
553411
561307
]
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 (428148 , 399386 , 131975 , 321297 , 397482 , 407872 , 399023 , 491143 , 408217 , 145424 , 397489 , 421068 , 411925 , 419065 , 386648 , 410413 , 424985 , 91928 , 384904 , 401457 , 475256 , 429952 , 478599 , 398531 , 525948 , 526968 , 187699 , 560599 , 386623 , 396541 , 450204 , 449230 , 389487 , 548697 , 411408 , 430703 , 492341 , 391428 , 428653 , 405182 , 407973 , 389519 , 404281 , 546626 , 472905 , 432834 , 406179 , 428814 , 430701 , 390147 , 417883 , 519058 , 400708 , 408138 , 557526 , 425809 , 601650 , 439490 , 416166 , 504098 , 605545 , 467611 , 553411 , 561307 );
Copy
4
205.82 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
91928
131975
145424
187699
321297
384904
386623
386648
389487
389519
390147
391428
396541
397482
397489
398531
399023
399386
400708
401457
404281
405182
406179
407872
407973
408138
408217
410413
411408
411925
416166
417883
419065
421068
424985
425809
428148
428653
428814
429952
430701
430703
432834
439490
449230
450204
467611
472905
475256
478599
491143
492341
504098
519058
525948
526968
546626
548697
553411
557526
560599
561307
601650
605545
]
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 (91928 , 131975 , 145424 , 187699 , 321297 , 384904 , 386623 , 386648 , 389487 , 389519 , 390147 , 391428 , 396541 , 397482 , 397489 , 398531 , 399023 , 399386 , 400708 , 401457 , 404281 , 405182 , 406179 , 407872 , 407973 , 408138 , 408217 , 410413 , 411408 , 411925 , 416166 , 417883 , 419065 , 421068 , 424985 , 425809 , 428148 , 428653 , 428814 , 429952 , 430701 , 430703 , 432834 , 439490 , 449230 , 450204 , 467611 , 472905 , 475256 , 478599 , 491143 , 492341 , 504098 , 519058 , 525948 , 526968 , 546626 , 548697 , 553411 , 557526 , 560599 , 561307 , 601650 , 605545 );
Copy
5
100.84 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
91928
131975
145424
187699
321297
384904
386623
386648
389487
389519
390147
391428
396541
397482
397489
398531
399023
399386
400708
401457
404281
405182
406179
407872
407973
408138
408217
410413
411408
411925
416166
417883
419065
421068
424985
425809
428148
428653
428814
429952
430701
430703
432834
439490
449230
450204
467611
472905
475256
478599
491143
492341
504098
519058
525948
526968
546626
548697
553411
557526
560599
561307
601650
605545
]
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 (91928 , 131975 , 145424 , 187699 , 321297 , 384904 , 386623 , 386648 , 389487 , 389519 , 390147 , 391428 , 396541 , 397482 , 397489 , 398531 , 399023 , 399386 , 400708 , 401457 , 404281 , 405182 , 406179 , 407872 , 407973 , 408138 , 408217 , 410413 , 411408 , 411925 , 416166 , 417883 , 419065 , 421068 , 424985 , 425809 , 428148 , 428653 , 428814 , 429952 , 430701 , 430703 , 432834 , 439490 , 449230 , 450204 , 467611 , 472905 , 475256 , 478599 , 491143 , 492341 , 504098 , 519058 , 525948 , 526968 , 546626 , 548697 , 553411 , 557526 , 560599 , 561307 , 601650 , 605545 );
Copy