3
10.67 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
813750
584250
720096
328446
330449
443626
530328
582548
552742
612427
606783
726484
470781
479120
581300
581398
622953
592530
603147
622381
528435
519248
629296
426233
418350
551028
652879
583860
605562
638578
726517
436547
483331
511055
576720
554787
415286
474859
495689
554786
607258
603166
586695
418883
533636
605105
522696
542480
560204
808060
157194
400143
407089
452282
521367
522382
452251
566243
659025
560190
483417
422270
]
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 (813750 , 584250 , 720096 , 328446 , 330449 , 443626 , 530328 , 582548 , 552742 , 612427 , 606783 , 726484 , 470781 , 479120 , 581300 , 581398 , 622953 , 592530 , 603147 , 622381 , 528435 , 519248 , 629296 , 426233 , 418350 , 551028 , 652879 , 583860 , 605562 , 638578 , 726517 , 436547 , 483331 , 511055 , 576720 , 554787 , 415286 , 474859 , 495689 , 554786 , 607258 , 603166 , 586695 , 418883 , 533636 , 605105 , 522696 , 542480 , 560204 , 808060 , 157194 , 400143 , 407089 , 452282 , 521367 , 522382 , 452251 , 566243 , 659025 , 560190 , 483417 , 422270 );
Copy
4
2.65 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
157194
328446
330449
400143
407089
415286
418350
418883
422270
426233
436547
443626
452251
452282
470781
474859
479120
483331
483417
495689
511055
519248
521367
522382
522696
528435
530328
533636
542480
551028
552742
554786
554787
560190
560204
566243
576720
581300
581398
582548
583860
584250
586695
592530
603147
603166
605105
605562
606783
607258
612427
622381
622953
629296
638578
652879
659025
720096
726484
726517
808060
813750
]
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 (157194 , 328446 , 330449 , 400143 , 407089 , 415286 , 418350 , 418883 , 422270 , 426233 , 436547 , 443626 , 452251 , 452282 , 470781 , 474859 , 479120 , 483331 , 483417 , 495689 , 511055 , 519248 , 521367 , 522382 , 522696 , 528435 , 530328 , 533636 , 542480 , 551028 , 552742 , 554786 , 554787 , 560190 , 560204 , 566243 , 576720 , 581300 , 581398 , 582548 , 583860 , 584250 , 586695 , 592530 , 603147 , 603166 , 605105 , 605562 , 606783 , 607258 , 612427 , 622381 , 622953 , 629296 , 638578 , 652879 , 659025 , 720096 , 726484 , 726517 , 808060 , 813750 );
Copy
5
80.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
157194
328446
330449
400143
407089
415286
418350
418883
422270
426233
436547
443626
452251
452282
470781
474859
479120
483331
483417
495689
511055
519248
521367
522382
522696
528435
530328
533636
542480
551028
552742
554786
554787
560190
560204
566243
576720
581300
581398
582548
583860
584250
586695
592530
603147
603166
605105
605562
606783
607258
612427
622381
622953
629296
638578
652879
659025
720096
726484
726517
808060
813750
]
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 (157194 , 328446 , 330449 , 400143 , 407089 , 415286 , 418350 , 418883 , 422270 , 426233 , 436547 , 443626 , 452251 , 452282 , 470781 , 474859 , 479120 , 483331 , 483417 , 495689 , 511055 , 519248 , 521367 , 522382 , 522696 , 528435 , 530328 , 533636 , 542480 , 551028 , 552742 , 554786 , 554787 , 560190 , 560204 , 566243 , 576720 , 581300 , 581398 , 582548 , 583860 , 584250 , 586695 , 592530 , 603147 , 603166 , 605105 , 605562 , 606783 , 607258 , 612427 , 622381 , 622953 , 629296 , 638578 , 652879 , 659025 , 720096 , 726484 , 726517 , 808060 , 813750 );
Copy