3
10.48 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
789993
774104
816953
771678
403340
716215
806098
748239
813773
645794
713612
730675
559593
648470
800324
758110
569052
611936
789682
807389
532719
564441
692209
719025
797734
789637
573990
391594
786763
788856
524755
582399
605369
586456
596520
812645
790575
439175
402375
499332
814873
585110
670282
608815
614415
799767
812564
782610
772219
789692
464408
477335
814931
816722
590312
804462
494433
450319
630916
457452
469686
550205
567066
573726
801960
567051
440623
497311
639810
667736
651601
642746
523360
]
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 (789993 , 774104 , 816953 , 771678 , 403340 , 716215 , 806098 , 748239 , 813773 , 645794 , 713612 , 730675 , 559593 , 648470 , 800324 , 758110 , 569052 , 611936 , 789682 , 807389 , 532719 , 564441 , 692209 , 719025 , 797734 , 789637 , 573990 , 391594 , 786763 , 788856 , 524755 , 582399 , 605369 , 586456 , 596520 , 812645 , 790575 , 439175 , 402375 , 499332 , 814873 , 585110 , 670282 , 608815 , 614415 , 799767 , 812564 , 782610 , 772219 , 789692 , 464408 , 477335 , 814931 , 816722 , 590312 , 804462 , 494433 , 450319 , 630916 , 457452 , 469686 , 550205 , 567066 , 573726 , 801960 , 567051 , 440623 , 497311 , 639810 , 667736 , 651601 , 642746 , 523360 );
Copy
4
2.69 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
391594
402375
403340
439175
440623
450319
457452
464408
469686
477335
494433
497311
499332
523360
524755
532719
550205
559593
564441
567051
567066
569052
573726
573990
582399
585110
586456
590312
596520
605369
608815
611936
614415
630916
639810
642746
645794
648470
651601
667736
670282
692209
713612
716215
719025
730675
748239
758110
771678
772219
774104
782610
786763
788856
789637
789682
789692
789993
790575
797734
799767
800324
801960
804462
806098
807389
812564
812645
813773
814873
814931
816722
816953
]
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 (391594 , 402375 , 403340 , 439175 , 440623 , 450319 , 457452 , 464408 , 469686 , 477335 , 494433 , 497311 , 499332 , 523360 , 524755 , 532719 , 550205 , 559593 , 564441 , 567051 , 567066 , 569052 , 573726 , 573990 , 582399 , 585110 , 586456 , 590312 , 596520 , 605369 , 608815 , 611936 , 614415 , 630916 , 639810 , 642746 , 645794 , 648470 , 651601 , 667736 , 670282 , 692209 , 713612 , 716215 , 719025 , 730675 , 748239 , 758110 , 771678 , 772219 , 774104 , 782610 , 786763 , 788856 , 789637 , 789682 , 789692 , 789993 , 790575 , 797734 , 799767 , 800324 , 801960 , 804462 , 806098 , 807389 , 812564 , 812645 , 813773 , 814873 , 814931 , 816722 , 816953 );
Copy
5
82.87 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
391594
402375
403340
439175
440623
450319
457452
464408
469686
477335
494433
497311
499332
523360
524755
532719
550205
559593
564441
567051
567066
569052
573726
573990
582399
585110
586456
590312
596520
605369
608815
611936
614415
630916
639810
642746
645794
648470
651601
667736
670282
692209
713612
716215
719025
730675
748239
758110
771678
772219
774104
782610
786763
788856
789637
789682
789692
789993
790575
797734
799767
800324
801960
804462
806098
807389
812564
812645
813773
814873
814931
816722
816953
]
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 (391594 , 402375 , 403340 , 439175 , 440623 , 450319 , 457452 , 464408 , 469686 , 477335 , 494433 , 497311 , 499332 , 523360 , 524755 , 532719 , 550205 , 559593 , 564441 , 567051 , 567066 , 569052 , 573726 , 573990 , 582399 , 585110 , 586456 , 590312 , 596520 , 605369 , 608815 , 611936 , 614415 , 630916 , 639810 , 642746 , 645794 , 648470 , 651601 , 667736 , 670282 , 692209 , 713612 , 716215 , 719025 , 730675 , 748239 , 758110 , 771678 , 772219 , 774104 , 782610 , 786763 , 788856 , 789637 , 789682 , 789692 , 789993 , 790575 , 797734 , 799767 , 800324 , 801960 , 804462 , 806098 , 807389 , 812564 , 812645 , 813773 , 814873 , 814931 , 816722 , 816953 );
Copy