4
11.57 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
699400
668996
403284
399083
531260
500335
797389
807510
732898
773906
582443
605376
637072
413597
647599
637107
576689
668549
784304
445416
641127
623262
118472
388891
773123
801907
797585
775195
456466
486189
398966
123614
598141
644266
419654
416720
421153
606549
433075
600007
750064
514949
649216
433295
444916
424648
459703
544528
617437
603536
521581
647960
676641
677307
422044
514638
513025
622229
592758
434192
556025
477873
432359
487703
]
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 (699400 , 668996 , 403284 , 399083 , 531260 , 500335 , 797389 , 807510 , 732898 , 773906 , 582443 , 605376 , 637072 , 413597 , 647599 , 637107 , 576689 , 668549 , 784304 , 445416 , 641127 , 623262 , 118472 , 388891 , 773123 , 801907 , 797585 , 775195 , 456466 , 486189 , 398966 , 123614 , 598141 , 644266 , 419654 , 416720 , 421153 , 606549 , 433075 , 600007 , 750064 , 514949 , 649216 , 433295 , 444916 , 424648 , 459703 , 544528 , 617437 , 603536 , 521581 , 647960 , 676641 , 677307 , 422044 , 514638 , 513025 , 622229 , 592758 , 434192 , 556025 , 477873 , 432359 , 487703 );
Copy
5
2.77 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
118472
123614
388891
398966
399083
403284
413597
416720
419654
421153
422044
424648
432359
433075
433295
434192
444916
445416
456466
459703
477873
486189
487703
500335
513025
514638
514949
521581
531260
544528
556025
576689
582443
592758
598141
600007
603536
605376
606549
617437
622229
623262
637072
637107
641127
644266
647599
647960
649216
668549
668996
676641
677307
699400
732898
750064
773123
773906
775195
784304
797389
797585
801907
807510
]
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 (118472 , 123614 , 388891 , 398966 , 399083 , 403284 , 413597 , 416720 , 419654 , 421153 , 422044 , 424648 , 432359 , 433075 , 433295 , 434192 , 444916 , 445416 , 456466 , 459703 , 477873 , 486189 , 487703 , 500335 , 513025 , 514638 , 514949 , 521581 , 531260 , 544528 , 556025 , 576689 , 582443 , 592758 , 598141 , 600007 , 603536 , 605376 , 606549 , 617437 , 622229 , 623262 , 637072 , 637107 , 641127 , 644266 , 647599 , 647960 , 649216 , 668549 , 668996 , 676641 , 677307 , 699400 , 732898 , 750064 , 773123 , 773906 , 775195 , 784304 , 797389 , 797585 , 801907 , 807510 );
Copy
6
88.08 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
118472
123614
388891
398966
399083
403284
413597
416720
419654
421153
422044
424648
432359
433075
433295
434192
444916
445416
456466
459703
477873
486189
487703
500335
513025
514638
514949
521581
531260
544528
556025
576689
582443
592758
598141
600007
603536
605376
606549
617437
622229
623262
637072
637107
641127
644266
647599
647960
649216
668549
668996
676641
677307
699400
732898
750064
773123
773906
775195
784304
797389
797585
801907
807510
]
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 (118472 , 123614 , 388891 , 398966 , 399083 , 403284 , 413597 , 416720 , 419654 , 421153 , 422044 , 424648 , 432359 , 433075 , 433295 , 434192 , 444916 , 445416 , 456466 , 459703 , 477873 , 486189 , 487703 , 500335 , 513025 , 514638 , 514949 , 521581 , 531260 , 544528 , 556025 , 576689 , 582443 , 592758 , 598141 , 600007 , 603536 , 605376 , 606549 , 617437 , 622229 , 623262 , 637072 , 637107 , 641127 , 644266 , 647599 , 647960 , 649216 , 668549 , 668996 , 676641 , 677307 , 699400 , 732898 , 750064 , 773123 , 773906 , 775195 , 784304 , 797389 , 797585 , 801907 , 807510 );
Copy