89.44 ms (61.77%)
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
393076
401235
405028
415658
421494
428409
438424
447911
449871
453313
453365
454215
460669
461035
461141
462483
467088
467250
467932
469475
474147
474364
476428
482622
483413
483440
484249
484672
484748
486252
486453
495741
495744
498014
501841
502187
504085
506796
509685
511871
516000
516053
516103
516658
516877
516885
518768
519128
519171
520002
520346
520354
520542
521446
522110
522878
523172
523335
523360
523809
524141
525306
525428
526130
528181
529271
535369
543422
550841
592288
]
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 (393076 , 401235 , 405028 , 415658 , 421494 , 428409 , 438424 , 447911 , 449871 , 453313 , 453365 , 454215 , 460669 , 461035 , 461141 , 462483 , 467088 , 467250 , 467932 , 469475 , 474147 , 474364 , 476428 , 482622 , 483413 , 483440 , 484249 , 484672 , 484748 , 486252 , 486453 , 495741 , 495744 , 498014 , 501841 , 502187 , 504085 , 506796 , 509685 , 511871 , 516000 , 516053 , 516103 , 516658 , 516877 , 516885 , 518768 , 519128 , 519171 , 520002 , 520346 , 520354 , 520542 , 521446 , 522110 , 522878 , 523172 , 523335 , 523360 , 523809 , 524141 , 525306 , 525428 , 526130 , 528181 , 529271 , 535369 , 543422 , 550841 , 592288 );
Copy
16.77 ms (11.58%)
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
483413
516877
592288
454215
498014
519171
482622
415658
461141
484249
484748
495741
529271
474364
522110
526130
438424
520002
453365
461035
447911
469475
476428
525428
501841
506796
449871
401235
428409
516658
486252
495744
511871
519128
520542
520346
467932
516885
467088
524141
523335
393076
509685
550841
467250
421494
486453
502187
483440
504085
516000
525306
523172
535369
518768
543422
405028
462483
528181
520354
484672
460669
474147
516053
516103
521446
523809
523360
522878
453313
]
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 (483413 , 516877 , 592288 , 454215 , 498014 , 519171 , 482622 , 415658 , 461141 , 484249 , 484748 , 495741 , 529271 , 474364 , 522110 , 526130 , 438424 , 520002 , 453365 , 461035 , 447911 , 469475 , 476428 , 525428 , 501841 , 506796 , 449871 , 401235 , 428409 , 516658 , 486252 , 495744 , 511871 , 519128 , 520542 , 520346 , 467932 , 516885 , 467088 , 524141 , 523335 , 393076 , 509685 , 550841 , 467250 , 421494 , 486453 , 502187 , 483440 , 504085 , 516000 , 525306 , 523172 , 535369 , 518768 , 543422 , 405028 , 462483 , 528181 , 520354 , 484672 , 460669 , 474147 , 516053 , 516103 , 521446 , 523809 , 523360 , 522878 , 453313 );
Copy
2.80 ms (1.93%)
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
393076
401235
405028
415658
421494
428409
438424
447911
449871
453313
453365
454215
460669
461035
461141
462483
467088
467250
467932
469475
474147
474364
476428
482622
483413
483440
484249
484672
484748
486252
486453
495741
495744
498014
501841
502187
504085
506796
509685
511871
516000
516053
516103
516658
516877
516885
518768
519128
519171
520002
520346
520354
520542
521446
522110
522878
523172
523335
523360
523809
524141
525306
525428
526130
528181
529271
535369
543422
550841
592288
]
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 (393076 , 401235 , 405028 , 415658 , 421494 , 428409 , 438424 , 447911 , 449871 , 453313 , 453365 , 454215 , 460669 , 461035 , 461141 , 462483 , 467088 , 467250 , 467932 , 469475 , 474147 , 474364 , 476428 , 482622 , 483413 , 483440 , 484249 , 484672 , 484748 , 486252 , 486453 , 495741 , 495744 , 498014 , 501841 , 502187 , 504085 , 506796 , 509685 , 511871 , 516000 , 516053 , 516103 , 516658 , 516877 , 516885 , 518768 , 519128 , 519171 , 520002 , 520346 , 520354 , 520542 , 521446 , 522110 , 522878 , 523172 , 523335 , 523360 , 523809 , 524141 , 525306 , 525428 , 526130 , 528181 , 529271 , 535369 , 543422 , 550841 , 592288 );
Copy