126.88 ms (70.49%)
1
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
13543
13703
191382
389867
422923
425592
433354
465038
470329
474125
474953
476716
484283
489585
503796
506281
507678
509840
510025
510109
510269
514011
521739
521894
524591
524670
527445
537991
543878
552093
554928
557984
559997
565348
570101
571954
576270
577413
580932
581485
585671
590433
596467
598984
600786
603376
607082
608268
612099
615429
620499
621112
624162
626136
634791
636638
647645
647745
674986
690010
764414
764507
764524
790784
803013
803176
807769
811060
811152
]
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 (13543 , 13703 , 191382 , 389867 , 422923 , 425592 , 433354 , 465038 , 470329 , 474125 , 474953 , 476716 , 484283 , 489585 , 503796 , 506281 , 507678 , 509840 , 510025 , 510109 , 510269 , 514011 , 521739 , 521894 , 524591 , 524670 , 527445 , 537991 , 543878 , 552093 , 554928 , 557984 , 559997 , 565348 , 570101 , 571954 , 576270 , 577413 , 580932 , 581485 , 585671 , 590433 , 596467 , 598984 , 600786 , 603376 , 607082 , 608268 , 612099 , 615429 , 620499 , 621112 , 624162 , 626136 , 634791 , 636638 , 647645 , 647745 , 674986 , 690010 , 764414 , 764507 , 764524 , 790784 , 803013 , 803176 , 807769 , 811060 , 811152 );
Copy
12.62 ms (7.01%)
1
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
191382
13703
647745
811060
764414
803176
807769
425592
647645
803013
636638
764524
764507
13543
503796
389867
690010
811152
580932
433354
524591
465038
565348
557984
577413
607082
470329
509840
521894
590433
570101
624162
790784
510269
524670
514011
474953
634791
422923
527445
506281
552093
559997
489585
507678
576270
537991
476716
543878
510109
571954
674986
484283
626136
585671
598984
620499
621112
510025
603376
608268
596467
581485
612099
600786
521739
474125
554928
615429
]
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 (191382 , 13703 , 647745 , 811060 , 764414 , 803176 , 807769 , 425592 , 647645 , 803013 , 636638 , 764524 , 764507 , 13543 , 503796 , 389867 , 690010 , 811152 , 580932 , 433354 , 524591 , 465038 , 565348 , 557984 , 577413 , 607082 , 470329 , 509840 , 521894 , 590433 , 570101 , 624162 , 790784 , 510269 , 524670 , 514011 , 474953 , 634791 , 422923 , 527445 , 506281 , 552093 , 559997 , 489585 , 507678 , 576270 , 537991 , 476716 , 543878 , 510109 , 571954 , 674986 , 484283 , 626136 , 585671 , 598984 , 620499 , 621112 , 510025 , 603376 , 608268 , 596467 , 581485 , 612099 , 600786 , 521739 , 474125 , 554928 , 615429 );
Copy
2.20 ms (1.22%)
1
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
13543
13703
191382
389867
422923
425592
433354
465038
470329
474125
474953
476716
484283
489585
503796
506281
507678
509840
510025
510109
510269
514011
521739
521894
524591
524670
527445
537991
543878
552093
554928
557984
559997
565348
570101
571954
576270
577413
580932
581485
585671
590433
596467
598984
600786
603376
607082
608268
612099
615429
620499
621112
624162
626136
634791
636638
647645
647745
674986
690010
764414
764507
764524
790784
803013
803176
807769
811060
811152
]
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 (13543 , 13703 , 191382 , 389867 , 422923 , 425592 , 433354 , 465038 , 470329 , 474125 , 474953 , 476716 , 484283 , 489585 , 503796 , 506281 , 507678 , 509840 , 510025 , 510109 , 510269 , 514011 , 521739 , 521894 , 524591 , 524670 , 527445 , 537991 , 543878 , 552093 , 554928 , 557984 , 559997 , 565348 , 570101 , 571954 , 576270 , 577413 , 580932 , 581485 , 585671 , 590433 , 596467 , 598984 , 600786 , 603376 , 607082 , 608268 , 612099 , 615429 , 620499 , 621112 , 624162 , 626136 , 634791 , 636638 , 647645 , 647745 , 674986 , 690010 , 764414 , 764507 , 764524 , 790784 , 803013 , 803176 , 807769 , 811060 , 811152 );
Copy