3
11.25 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
516166
398809
574083
451778
455785
475339
439442
440840
209726
424539
483822
525699
451634
620898
440469
440908
560318
477886
464155
424637
428143
448259
445493
494015
547835
440826
474092
266526
555703
500048
446064
465450
545706
560946
420654
464732
440767
553700
553505
499421
393855
507253
476030
528452
440911
440486
776383
473791
459026
475226
605277
437963
625365
466089
603994
514250
579635
446311
461616
516938
444593
520065
528363
519184
606774
442680
477773
588724
514638
]
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 (516166 , 398809 , 574083 , 451778 , 455785 , 475339 , 439442 , 440840 , 209726 , 424539 , 483822 , 525699 , 451634 , 620898 , 440469 , 440908 , 560318 , 477886 , 464155 , 424637 , 428143 , 448259 , 445493 , 494015 , 547835 , 440826 , 474092 , 266526 , 555703 , 500048 , 446064 , 465450 , 545706 , 560946 , 420654 , 464732 , 440767 , 553700 , 553505 , 499421 , 393855 , 507253 , 476030 , 528452 , 440911 , 440486 , 776383 , 473791 , 459026 , 475226 , 605277 , 437963 , 625365 , 466089 , 603994 , 514250 , 579635 , 446311 , 461616 , 516938 , 444593 , 520065 , 528363 , 519184 , 606774 , 442680 , 477773 , 588724 , 514638 );
Copy
4
3.15 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
209726
266526
393855
398809
420654
424539
424637
428143
437963
439442
440469
440486
440767
440826
440840
440908
440911
442680
444593
445493
446064
446311
448259
451634
451778
455785
459026
461616
464155
464732
465450
466089
473791
474092
475226
475339
476030
477773
477886
483822
494015
499421
500048
507253
514250
514638
516166
516938
519184
520065
525699
528363
528452
545706
547835
553505
553700
555703
560318
560946
574083
579635
588724
603994
605277
606774
620898
625365
776383
]
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 (209726 , 266526 , 393855 , 398809 , 420654 , 424539 , 424637 , 428143 , 437963 , 439442 , 440469 , 440486 , 440767 , 440826 , 440840 , 440908 , 440911 , 442680 , 444593 , 445493 , 446064 , 446311 , 448259 , 451634 , 451778 , 455785 , 459026 , 461616 , 464155 , 464732 , 465450 , 466089 , 473791 , 474092 , 475226 , 475339 , 476030 , 477773 , 477886 , 483822 , 494015 , 499421 , 500048 , 507253 , 514250 , 514638 , 516166 , 516938 , 519184 , 520065 , 525699 , 528363 , 528452 , 545706 , 547835 , 553505 , 553700 , 555703 , 560318 , 560946 , 574083 , 579635 , 588724 , 603994 , 605277 , 606774 , 620898 , 625365 , 776383 );
Copy
5
103.28 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
209726
266526
393855
398809
420654
424539
424637
428143
437963
439442
440469
440486
440767
440826
440840
440908
440911
442680
444593
445493
446064
446311
448259
451634
451778
455785
459026
461616
464155
464732
465450
466089
473791
474092
475226
475339
476030
477773
477886
483822
494015
499421
500048
507253
514250
514638
516166
516938
519184
520065
525699
528363
528452
545706
547835
553505
553700
555703
560318
560946
574083
579635
588724
603994
605277
606774
620898
625365
776383
]
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 (209726 , 266526 , 393855 , 398809 , 420654 , 424539 , 424637 , 428143 , 437963 , 439442 , 440469 , 440486 , 440767 , 440826 , 440840 , 440908 , 440911 , 442680 , 444593 , 445493 , 446064 , 446311 , 448259 , 451634 , 451778 , 455785 , 459026 , 461616 , 464155 , 464732 , 465450 , 466089 , 473791 , 474092 , 475226 , 475339 , 476030 , 477773 , 477886 , 483822 , 494015 , 499421 , 500048 , 507253 , 514250 , 514638 , 516166 , 516938 , 519184 , 520065 , 525699 , 528363 , 528452 , 545706 , 547835 , 553505 , 553700 , 555703 , 560318 , 560946 , 574083 , 579635 , 588724 , 603994 , 605277 , 606774 , 620898 , 625365 , 776383 );
Copy