3
12.88 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
662506
417997
385687
406977
420368
461248
491308
489448
448853
475777
425167
419466
446760
452743
495304
426783
472355
575369
389597
411520
477702
399948
418249
469960
481178
503323
442802
475564
553248
547781
598399
589813
470821
424485
382839
456814
522931
503063
393218
433500
489256
403006
479953
425295
456146
463104
511604
505372
425030
466860
580830
526722
498442
432157
472147
495451
520623
520463
551525
566724
512566
516846
572774
543508
560788
616779
616024
]
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 (662506 , 417997 , 385687 , 406977 , 420368 , 461248 , 491308 , 489448 , 448853 , 475777 , 425167 , 419466 , 446760 , 452743 , 495304 , 426783 , 472355 , 575369 , 389597 , 411520 , 477702 , 399948 , 418249 , 469960 , 481178 , 503323 , 442802 , 475564 , 553248 , 547781 , 598399 , 589813 , 470821 , 424485 , 382839 , 456814 , 522931 , 503063 , 393218 , 433500 , 489256 , 403006 , 479953 , 425295 , 456146 , 463104 , 511604 , 505372 , 425030 , 466860 , 580830 , 526722 , 498442 , 432157 , 472147 , 495451 , 520623 , 520463 , 551525 , 566724 , 512566 , 516846 , 572774 , 543508 , 560788 , 616779 , 616024 );
Copy
4
2.48 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
382839
385687
389597
393218
399948
403006
406977
411520
417997
418249
419466
420368
424485
425030
425167
425295
426783
432157
433500
442802
446760
448853
452743
456146
456814
461248
463104
466860
469960
470821
472147
472355
475564
475777
477702
479953
481178
489256
489448
491308
495304
495451
498442
503063
503323
505372
511604
512566
516846
520463
520623
522931
526722
543508
547781
551525
553248
560788
566724
572774
575369
580830
589813
598399
616024
616779
662506
]
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 (382839 , 385687 , 389597 , 393218 , 399948 , 403006 , 406977 , 411520 , 417997 , 418249 , 419466 , 420368 , 424485 , 425030 , 425167 , 425295 , 426783 , 432157 , 433500 , 442802 , 446760 , 448853 , 452743 , 456146 , 456814 , 461248 , 463104 , 466860 , 469960 , 470821 , 472147 , 472355 , 475564 , 475777 , 477702 , 479953 , 481178 , 489256 , 489448 , 491308 , 495304 , 495451 , 498442 , 503063 , 503323 , 505372 , 511604 , 512566 , 516846 , 520463 , 520623 , 522931 , 526722 , 543508 , 547781 , 551525 , 553248 , 560788 , 566724 , 572774 , 575369 , 580830 , 589813 , 598399 , 616024 , 616779 , 662506 );
Copy
5
113.49 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
382839
385687
389597
393218
399948
403006
406977
411520
417997
418249
419466
420368
424485
425030
425167
425295
426783
432157
433500
442802
446760
448853
452743
456146
456814
461248
463104
466860
469960
470821
472147
472355
475564
475777
477702
479953
481178
489256
489448
491308
495304
495451
498442
503063
503323
505372
511604
512566
516846
520463
520623
522931
526722
543508
547781
551525
553248
560788
566724
572774
575369
580830
589813
598399
616024
616779
662506
]
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 (382839 , 385687 , 389597 , 393218 , 399948 , 403006 , 406977 , 411520 , 417997 , 418249 , 419466 , 420368 , 424485 , 425030 , 425167 , 425295 , 426783 , 432157 , 433500 , 442802 , 446760 , 448853 , 452743 , 456146 , 456814 , 461248 , 463104 , 466860 , 469960 , 470821 , 472147 , 472355 , 475564 , 475777 , 477702 , 479953 , 481178 , 489256 , 489448 , 491308 , 495304 , 495451 , 498442 , 503063 , 503323 , 505372 , 511604 , 512566 , 516846 , 520463 , 520623 , 522931 , 526722 , 543508 , 547781 , 551525 , 553248 , 560788 , 566724 , 572774 , 575369 , 580830 , 589813 , 598399 , 616024 , 616779 , 662506 );
Copy