3
10.50 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
788304
736330
827383
817324
587250
734269
595602
741587
804868
759931
726240
749009
763510
764004
401103
445188
555783
761597
742288
721230
593571
591832
725416
732990
617089
450371
759870
464929
720122
710275
624895
616849
778949
793916
782464
483179
464808
702881
726986
761047
521999
533064
631162
530703
495143
564508
552372
756421
759946
449358
449741
459611
490219
668555
429440
460062
468288
647954
599957
599941
530744
646025
632617
600206
599899
537584
599965
643098
632261
644986
628336
642660
630531
637413
635275
]
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 (788304 , 736330 , 827383 , 817324 , 587250 , 734269 , 595602 , 741587 , 804868 , 759931 , 726240 , 749009 , 763510 , 764004 , 401103 , 445188 , 555783 , 761597 , 742288 , 721230 , 593571 , 591832 , 725416 , 732990 , 617089 , 450371 , 759870 , 464929 , 720122 , 710275 , 624895 , 616849 , 778949 , 793916 , 782464 , 483179 , 464808 , 702881 , 726986 , 761047 , 521999 , 533064 , 631162 , 530703 , 495143 , 564508 , 552372 , 756421 , 759946 , 449358 , 449741 , 459611 , 490219 , 668555 , 429440 , 460062 , 468288 , 647954 , 599957 , 599941 , 530744 , 646025 , 632617 , 600206 , 599899 , 537584 , 599965 , 643098 , 632261 , 644986 , 628336 , 642660 , 630531 , 637413 , 635275 );
Copy
4
3.43 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
401103
429440
445188
449358
449741
450371
459611
460062
464808
464929
468288
483179
490219
495143
521999
530703
530744
533064
537584
552372
555783
564508
587250
591832
593571
595602
599899
599941
599957
599965
600206
616849
617089
624895
628336
630531
631162
632261
632617
635275
637413
642660
643098
644986
646025
647954
668555
702881
710275
720122
721230
725416
726240
726986
732990
734269
736330
741587
742288
749009
756421
759870
759931
759946
761047
761597
763510
764004
778949
782464
788304
793916
804868
817324
827383
]
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 (401103 , 429440 , 445188 , 449358 , 449741 , 450371 , 459611 , 460062 , 464808 , 464929 , 468288 , 483179 , 490219 , 495143 , 521999 , 530703 , 530744 , 533064 , 537584 , 552372 , 555783 , 564508 , 587250 , 591832 , 593571 , 595602 , 599899 , 599941 , 599957 , 599965 , 600206 , 616849 , 617089 , 624895 , 628336 , 630531 , 631162 , 632261 , 632617 , 635275 , 637413 , 642660 , 643098 , 644986 , 646025 , 647954 , 668555 , 702881 , 710275 , 720122 , 721230 , 725416 , 726240 , 726986 , 732990 , 734269 , 736330 , 741587 , 742288 , 749009 , 756421 , 759870 , 759931 , 759946 , 761047 , 761597 , 763510 , 764004 , 778949 , 782464 , 788304 , 793916 , 804868 , 817324 , 827383 );
Copy
5
137.69 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
401103
429440
445188
449358
449741
450371
459611
460062
464808
464929
468288
483179
490219
495143
521999
530703
530744
533064
537584
552372
555783
564508
587250
591832
593571
595602
599899
599941
599957
599965
600206
616849
617089
624895
628336
630531
631162
632261
632617
635275
637413
642660
643098
644986
646025
647954
668555
702881
710275
720122
721230
725416
726240
726986
732990
734269
736330
741587
742288
749009
756421
759870
759931
759946
761047
761597
763510
764004
778949
782464
788304
793916
804868
817324
827383
]
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 (401103 , 429440 , 445188 , 449358 , 449741 , 450371 , 459611 , 460062 , 464808 , 464929 , 468288 , 483179 , 490219 , 495143 , 521999 , 530703 , 530744 , 533064 , 537584 , 552372 , 555783 , 564508 , 587250 , 591832 , 593571 , 595602 , 599899 , 599941 , 599957 , 599965 , 600206 , 616849 , 617089 , 624895 , 628336 , 630531 , 631162 , 632261 , 632617 , 635275 , 637413 , 642660 , 643098 , 644986 , 646025 , 647954 , 668555 , 702881 , 710275 , 720122 , 721230 , 725416 , 726240 , 726986 , 732990 , 734269 , 736330 , 741587 , 742288 , 749009 , 756421 , 759870 , 759931 , 759946 , 761047 , 761597 , 763510 , 764004 , 778949 , 782464 , 788304 , 793916 , 804868 , 817324 , 827383 );
Copy