91.46 ms (75.57%)
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
229010
385799
387198
389474
390205
400182
401948
402598
427975
433312
433475
433494
437544
449099
453458
479810
487708
489244
497014
497017
523861
526217
530671
531228
532385
532387
532396
535010
541255
541525
542594
603385
617212
625165
631180
631181
651648
663521
681304
681681
685668
693821
701785
703173
707353
718767
721784
728166
729644
732611
756243
772555
786384
788960
799463
807655
813136
814638
814803
815212
815286
815366
815842
816080
816195
818214
]
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 (229010 , 385799 , 387198 , 389474 , 390205 , 400182 , 401948 , 402598 , 427975 , 433312 , 433475 , 433494 , 437544 , 449099 , 453458 , 479810 , 487708 , 489244 , 497014 , 497017 , 523861 , 526217 , 530671 , 531228 , 532385 , 532387 , 532396 , 535010 , 541255 , 541525 , 542594 , 603385 , 617212 , 625165 , 631180 , 631181 , 651648 , 663521 , 681304 , 681681 , 685668 , 693821 , 701785 , 703173 , 707353 , 718767 , 721784 , 728166 , 729644 , 732611 , 756243 , 772555 , 786384 , 788960 , 799463 , 807655 , 813136 , 814638 , 814803 , 815212 , 815286 , 815366 , 815842 , 816080 , 816195 , 818214 );
Copy
11.06 ms (9.13%)
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
756243
703173
701785
685668
631181
631180
807655
772555
799463
788960
541525
729644
718767
814803
532387
532385
532396
786384
813136
427975
814638
651648
530671
693821
526217
531228
497017
541255
479810
681304
681681
625165
487708
453458
732611
816080
489244
229010
816195
815366
707353
387198
728166
617212
401948
603385
815286
721784
815842
818214
815212
449099
663521
389474
402598
385799
400182
390205
437544
523861
535010
497014
433475
433312
433494
542594
]
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 (756243 , 703173 , 701785 , 685668 , 631181 , 631180 , 807655 , 772555 , 799463 , 788960 , 541525 , 729644 , 718767 , 814803 , 532387 , 532385 , 532396 , 786384 , 813136 , 427975 , 814638 , 651648 , 530671 , 693821 , 526217 , 531228 , 497017 , 541255 , 479810 , 681304 , 681681 , 625165 , 487708 , 453458 , 732611 , 816080 , 489244 , 229010 , 816195 , 815366 , 707353 , 387198 , 728166 , 617212 , 401948 , 603385 , 815286 , 721784 , 815842 , 818214 , 815212 , 449099 , 663521 , 389474 , 402598 , 385799 , 400182 , 390205 , 437544 , 523861 , 535010 , 497014 , 433475 , 433312 , 433494 , 542594 );
Copy
2.37 ms (1.96%)
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
229010
385799
387198
389474
390205
400182
401948
402598
427975
433312
433475
433494
437544
449099
453458
479810
487708
489244
497014
497017
523861
526217
530671
531228
532385
532387
532396
535010
541255
541525
542594
603385
617212
625165
631180
631181
651648
663521
681304
681681
685668
693821
701785
703173
707353
718767
721784
728166
729644
732611
756243
772555
786384
788960
799463
807655
813136
814638
814803
815212
815286
815366
815842
816080
816195
818214
]
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 (229010 , 385799 , 387198 , 389474 , 390205 , 400182 , 401948 , 402598 , 427975 , 433312 , 433475 , 433494 , 437544 , 449099 , 453458 , 479810 , 487708 , 489244 , 497014 , 497017 , 523861 , 526217 , 530671 , 531228 , 532385 , 532387 , 532396 , 535010 , 541255 , 541525 , 542594 , 603385 , 617212 , 625165 , 631180 , 631181 , 651648 , 663521 , 681304 , 681681 , 685668 , 693821 , 701785 , 703173 , 707353 , 718767 , 721784 , 728166 , 729644 , 732611 , 756243 , 772555 , 786384 , 788960 , 799463 , 807655 , 813136 , 814638 , 814803 , 815212 , 815286 , 815366 , 815842 , 816080 , 816195 , 818214 );
Copy