300.17 ms (89.12%)
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
388785
389492
408837
413110
415147
426006
433977
444148
445184
452310
452639
459938
462121
464157
464647
466361
468222
469857
470530
472025
472223
473959
476688
477372
478024
479758
479966
484751
486376
487263
487547
490387
492233
492656
502855
508764
509145
512010
512278
513639
513646
515328
524608
525011
525692
532737
537720
537728
540482
544184
544448
545387
545686
556341
557847
564583
564588
565089
568142
568144
574915
576034
580153
580156
586526
616902
]
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 (388785 , 389492 , 408837 , 413110 , 415147 , 426006 , 433977 , 444148 , 445184 , 452310 , 452639 , 459938 , 462121 , 464157 , 464647 , 466361 , 468222 , 469857 , 470530 , 472025 , 472223 , 473959 , 476688 , 477372 , 478024 , 479758 , 479966 , 484751 , 486376 , 487263 , 487547 , 490387 , 492233 , 492656 , 502855 , 508764 , 509145 , 512010 , 512278 , 513639 , 513646 , 515328 , 524608 , 525011 , 525692 , 532737 , 537720 , 537728 , 540482 , 544184 , 544448 , 545387 , 545686 , 556341 , 557847 , 564583 , 564588 , 565089 , 568142 , 568144 , 574915 , 576034 , 580153 , 580156 , 586526 , 616902 );
Copy
10.71 ms (3.18%)
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
616902
586526
580156
580153
576034
574915
568144
568142
565089
564588
564583
557847
556341
545686
545387
544448
544184
540482
537728
537720
532737
525692
525011
524608
515328
513646
513639
512278
512010
509145
508764
502855
492656
492233
490387
487547
487263
486376
484751
479966
479758
478024
477372
476688
473959
472223
472025
470530
469857
468222
466361
464647
464157
462121
459938
452639
452310
445184
444148
433977
426006
415147
413110
408837
389492
388785
]
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 (616902 , 586526 , 580156 , 580153 , 576034 , 574915 , 568144 , 568142 , 565089 , 564588 , 564583 , 557847 , 556341 , 545686 , 545387 , 544448 , 544184 , 540482 , 537728 , 537720 , 532737 , 525692 , 525011 , 524608 , 515328 , 513646 , 513639 , 512278 , 512010 , 509145 , 508764 , 502855 , 492656 , 492233 , 490387 , 487547 , 487263 , 486376 , 484751 , 479966 , 479758 , 478024 , 477372 , 476688 , 473959 , 472223 , 472025 , 470530 , 469857 , 468222 , 466361 , 464647 , 464157 , 462121 , 459938 , 452639 , 452310 , 445184 , 444148 , 433977 , 426006 , 415147 , 413110 , 408837 , 389492 , 388785 );
Copy
2.80 ms (0.83%)
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
388785
389492
408837
413110
415147
426006
433977
444148
445184
452310
452639
459938
462121
464157
464647
466361
468222
469857
470530
472025
472223
473959
476688
477372
478024
479758
479966
484751
486376
487263
487547
490387
492233
492656
502855
508764
509145
512010
512278
513639
513646
515328
524608
525011
525692
532737
537720
537728
540482
544184
544448
545387
545686
556341
557847
564583
564588
565089
568142
568144
574915
576034
580153
580156
586526
616902
]
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 (388785 , 389492 , 408837 , 413110 , 415147 , 426006 , 433977 , 444148 , 445184 , 452310 , 452639 , 459938 , 462121 , 464157 , 464647 , 466361 , 468222 , 469857 , 470530 , 472025 , 472223 , 473959 , 476688 , 477372 , 478024 , 479758 , 479966 , 484751 , 486376 , 487263 , 487547 , 490387 , 492233 , 492656 , 502855 , 508764 , 509145 , 512010 , 512278 , 513639 , 513646 , 515328 , 524608 , 525011 , 525692 , 532737 , 537720 , 537728 , 540482 , 544184 , 544448 , 545387 , 545686 , 556341 , 557847 , 564583 , 564588 , 565089 , 568142 , 568144 , 574915 , 576034 , 580153 , 580156 , 586526 , 616902 );
Copy