3
12.32 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
406881
810061
485149
823721
775852
775857
414342
818468
488721
775140
390538
701348
97098
533003
532916
683301
802343
733866
407290
604331
706652
704953
387228
500431
716870
532662
396330
647968
403641
478572
561132
423654
522133
33459
545718
637438
733867
617412
720938
414350
510397
600490
600365
647635
632046
733870
506143
522147
605449
451256
401924
429793
674986
716902
473780
521866
677303
650198
563866
401919
617427
677783
490201
507880
531105
624270
521575
]
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 (406881 , 810061 , 485149 , 823721 , 775852 , 775857 , 414342 , 818468 , 488721 , 775140 , 390538 , 701348 , 97098 , 533003 , 532916 , 683301 , 802343 , 733866 , 407290 , 604331 , 706652 , 704953 , 387228 , 500431 , 716870 , 532662 , 396330 , 647968 , 403641 , 478572 , 561132 , 423654 , 522133 , 33459 , 545718 , 637438 , 733867 , 617412 , 720938 , 414350 , 510397 , 600490 , 600365 , 647635 , 632046 , 733870 , 506143 , 522147 , 605449 , 451256 , 401924 , 429793 , 674986 , 716902 , 473780 , 521866 , 677303 , 650198 , 563866 , 401919 , 617427 , 677783 , 490201 , 507880 , 531105 , 624270 , 521575 );
Copy
4
2.23 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
33459
97098
387228
390538
396330
401919
401924
403641
406881
407290
414342
414350
423654
429793
451256
473780
478572
485149
488721
490201
500431
506143
507880
510397
521575
521866
522133
522147
531105
532662
532916
533003
545718
561132
563866
600365
600490
604331
605449
617412
617427
624270
632046
637438
647635
647968
650198
674986
677303
677783
683301
701348
704953
706652
716870
716902
720938
733866
733867
733870
775140
775852
775857
802343
810061
818468
823721
]
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 (33459 , 97098 , 387228 , 390538 , 396330 , 401919 , 401924 , 403641 , 406881 , 407290 , 414342 , 414350 , 423654 , 429793 , 451256 , 473780 , 478572 , 485149 , 488721 , 490201 , 500431 , 506143 , 507880 , 510397 , 521575 , 521866 , 522133 , 522147 , 531105 , 532662 , 532916 , 533003 , 545718 , 561132 , 563866 , 600365 , 600490 , 604331 , 605449 , 617412 , 617427 , 624270 , 632046 , 637438 , 647635 , 647968 , 650198 , 674986 , 677303 , 677783 , 683301 , 701348 , 704953 , 706652 , 716870 , 716902 , 720938 , 733866 , 733867 , 733870 , 775140 , 775852 , 775857 , 802343 , 810061 , 818468 , 823721 );
Copy
5
86.74 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
33459
97098
387228
390538
396330
401919
401924
403641
406881
407290
414342
414350
423654
429793
451256
473780
478572
485149
488721
490201
500431
506143
507880
510397
521575
521866
522133
522147
531105
532662
532916
533003
545718
561132
563866
600365
600490
604331
605449
617412
617427
624270
632046
637438
647635
647968
650198
674986
677303
677783
683301
701348
704953
706652
716870
716902
720938
733866
733867
733870
775140
775852
775857
802343
810061
818468
823721
]
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 (33459 , 97098 , 387228 , 390538 , 396330 , 401919 , 401924 , 403641 , 406881 , 407290 , 414342 , 414350 , 423654 , 429793 , 451256 , 473780 , 478572 , 485149 , 488721 , 490201 , 500431 , 506143 , 507880 , 510397 , 521575 , 521866 , 522133 , 522147 , 531105 , 532662 , 532916 , 533003 , 545718 , 561132 , 563866 , 600365 , 600490 , 604331 , 605449 , 617412 , 617427 , 624270 , 632046 , 637438 , 647635 , 647968 , 650198 , 674986 , 677303 , 677783 , 683301 , 701348 , 704953 , 706652 , 716870 , 716902 , 720938 , 733866 , 733867 , 733870 , 775140 , 775852 , 775857 , 802343 , 810061 , 818468 , 823721 );
Copy