3
9.14 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
461353
409702
417174
715724
706993
563776
824833
797068
729565
477953
510399
471981
418953
476260
826783
605230
506615
595049
820462
464283
620880
609551
644706
800657
469274
465654
484401
603973
405252
697229
761756
517496
425809
561484
381867
704540
596415
776764
763798
464322
472147
517001
458014
476235
562959
594283
488380
610193
386218
385889
569423
769971
401183
437797
510233
516894
557960
690106
592590
820173
485773
493835
549234
387039
485463
524900
558286
581665
554358
619423
603642
606482
430404
489950
434601
]
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 (461353 , 409702 , 417174 , 715724 , 706993 , 563776 , 824833 , 797068 , 729565 , 477953 , 510399 , 471981 , 418953 , 476260 , 826783 , 605230 , 506615 , 595049 , 820462 , 464283 , 620880 , 609551 , 644706 , 800657 , 469274 , 465654 , 484401 , 603973 , 405252 , 697229 , 761756 , 517496 , 425809 , 561484 , 381867 , 704540 , 596415 , 776764 , 763798 , 464322 , 472147 , 517001 , 458014 , 476235 , 562959 , 594283 , 488380 , 610193 , 386218 , 385889 , 569423 , 769971 , 401183 , 437797 , 510233 , 516894 , 557960 , 690106 , 592590 , 820173 , 485773 , 493835 , 549234 , 387039 , 485463 , 524900 , 558286 , 581665 , 554358 , 619423 , 603642 , 606482 , 430404 , 489950 , 434601 );
Copy
4
2.35 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
381867
385889
386218
387039
401183
405252
409702
417174
418953
425809
430404
434601
437797
458014
461353
464283
464322
465654
469274
471981
472147
476235
476260
477953
484401
485463
485773
488380
489950
493835
506615
510233
510399
516894
517001
517496
524900
549234
554358
557960
558286
561484
562959
563776
569423
581665
592590
594283
595049
596415
603642
603973
605230
606482
609551
610193
619423
620880
644706
690106
697229
704540
706993
715724
729565
761756
763798
769971
776764
797068
800657
820173
820462
824833
826783
]
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 (381867 , 385889 , 386218 , 387039 , 401183 , 405252 , 409702 , 417174 , 418953 , 425809 , 430404 , 434601 , 437797 , 458014 , 461353 , 464283 , 464322 , 465654 , 469274 , 471981 , 472147 , 476235 , 476260 , 477953 , 484401 , 485463 , 485773 , 488380 , 489950 , 493835 , 506615 , 510233 , 510399 , 516894 , 517001 , 517496 , 524900 , 549234 , 554358 , 557960 , 558286 , 561484 , 562959 , 563776 , 569423 , 581665 , 592590 , 594283 , 595049 , 596415 , 603642 , 603973 , 605230 , 606482 , 609551 , 610193 , 619423 , 620880 , 644706 , 690106 , 697229 , 704540 , 706993 , 715724 , 729565 , 761756 , 763798 , 769971 , 776764 , 797068 , 800657 , 820173 , 820462 , 824833 , 826783 );
Copy
5
157.30 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
381867
385889
386218
387039
401183
405252
409702
417174
418953
425809
430404
434601
437797
458014
461353
464283
464322
465654
469274
471981
472147
476235
476260
477953
484401
485463
485773
488380
489950
493835
506615
510233
510399
516894
517001
517496
524900
549234
554358
557960
558286
561484
562959
563776
569423
581665
592590
594283
595049
596415
603642
603973
605230
606482
609551
610193
619423
620880
644706
690106
697229
704540
706993
715724
729565
761756
763798
769971
776764
797068
800657
820173
820462
824833
826783
]
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 (381867 , 385889 , 386218 , 387039 , 401183 , 405252 , 409702 , 417174 , 418953 , 425809 , 430404 , 434601 , 437797 , 458014 , 461353 , 464283 , 464322 , 465654 , 469274 , 471981 , 472147 , 476235 , 476260 , 477953 , 484401 , 485463 , 485773 , 488380 , 489950 , 493835 , 506615 , 510233 , 510399 , 516894 , 517001 , 517496 , 524900 , 549234 , 554358 , 557960 , 558286 , 561484 , 562959 , 563776 , 569423 , 581665 , 592590 , 594283 , 595049 , 596415 , 603642 , 603973 , 605230 , 606482 , 609551 , 610193 , 619423 , 620880 , 644706 , 690106 , 697229 , 704540 , 706993 , 715724 , 729565 , 761756 , 763798 , 769971 , 776764 , 797068 , 800657 , 820173 , 820462 , 824833 , 826783 );
Copy