3
11.33 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
7206
491393
448933
632564
468267
106162
649516
741578
466186
428381
490864
526901
451480
555118
752545
439521
88286
795528
803145
752553
801276
705438
390242
385734
498635
604334
747404
792136
426997
744698
598537
481441
598013
584101
467812
603239
610390
563050
810336
447644
556331
519642
145314
602744
503473
489471
439565
573175
450901
462526
485918
534208
480461
468076
593269
443491
593487
424401
491436
563489
596586
610695
593372
]
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 (7206 , 491393 , 448933 , 632564 , 468267 , 106162 , 649516 , 741578 , 466186 , 428381 , 490864 , 526901 , 451480 , 555118 , 752545 , 439521 , 88286 , 795528 , 803145 , 752553 , 801276 , 705438 , 390242 , 385734 , 498635 , 604334 , 747404 , 792136 , 426997 , 744698 , 598537 , 481441 , 598013 , 584101 , 467812 , 603239 , 610390 , 563050 , 810336 , 447644 , 556331 , 519642 , 145314 , 602744 , 503473 , 489471 , 439565 , 573175 , 450901 , 462526 , 485918 , 534208 , 480461 , 468076 , 593269 , 443491 , 593487 , 424401 , 491436 , 563489 , 596586 , 610695 , 593372 );
Copy
4
2.94 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
7206
88286
106162
145314
385734
390242
424401
426997
428381
439521
439565
443491
447644
448933
450901
451480
462526
466186
467812
468076
468267
480461
481441
485918
489471
490864
491393
491436
498635
503473
519642
526901
534208
555118
556331
563050
563489
573175
584101
593269
593372
593487
596586
598013
598537
602744
603239
604334
610390
610695
632564
649516
705438
741578
744698
747404
752545
752553
792136
795528
801276
803145
810336
]
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 (7206 , 88286 , 106162 , 145314 , 385734 , 390242 , 424401 , 426997 , 428381 , 439521 , 439565 , 443491 , 447644 , 448933 , 450901 , 451480 , 462526 , 466186 , 467812 , 468076 , 468267 , 480461 , 481441 , 485918 , 489471 , 490864 , 491393 , 491436 , 498635 , 503473 , 519642 , 526901 , 534208 , 555118 , 556331 , 563050 , 563489 , 573175 , 584101 , 593269 , 593372 , 593487 , 596586 , 598013 , 598537 , 602744 , 603239 , 604334 , 610390 , 610695 , 632564 , 649516 , 705438 , 741578 , 744698 , 747404 , 752545 , 752553 , 792136 , 795528 , 801276 , 803145 , 810336 );
Copy
5
96.35 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
7206
88286
106162
145314
385734
390242
424401
426997
428381
439521
439565
443491
447644
448933
450901
451480
462526
466186
467812
468076
468267
480461
481441
485918
489471
490864
491393
491436
498635
503473
519642
526901
534208
555118
556331
563050
563489
573175
584101
593269
593372
593487
596586
598013
598537
602744
603239
604334
610390
610695
632564
649516
705438
741578
744698
747404
752545
752553
792136
795528
801276
803145
810336
]
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 (7206 , 88286 , 106162 , 145314 , 385734 , 390242 , 424401 , 426997 , 428381 , 439521 , 439565 , 443491 , 447644 , 448933 , 450901 , 451480 , 462526 , 466186 , 467812 , 468076 , 468267 , 480461 , 481441 , 485918 , 489471 , 490864 , 491393 , 491436 , 498635 , 503473 , 519642 , 526901 , 534208 , 555118 , 556331 , 563050 , 563489 , 573175 , 584101 , 593269 , 593372 , 593487 , 596586 , 598013 , 598537 , 602744 , 603239 , 604334 , 610390 , 610695 , 632564 , 649516 , 705438 , 741578 , 744698 , 747404 , 752545 , 752553 , 792136 , 795528 , 801276 , 803145 , 810336 );
Copy