3
11.02 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
766186
804871
629701
527334
514014
567369
561259
524130
520488
394786
799500
629440
790244
775550
799836
699651
732778
697657
573720
552151
741932
428027
395234
475576
701660
777206
389376
571929
528189
475569
554360
524768
416305
461010
518543
428463
525067
546435
639118
441928
523973
573789
511747
498512
520110
644186
436447
527726
508309
553714
519718
575832
731326
475208
429574
512347
484392
658661
495701
559081
460731
659654
506820
676333
657670
587875
515223
]
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 (766186 , 804871 , 629701 , 527334 , 514014 , 567369 , 561259 , 524130 , 520488 , 394786 , 799500 , 629440 , 790244 , 775550 , 799836 , 699651 , 732778 , 697657 , 573720 , 552151 , 741932 , 428027 , 395234 , 475576 , 701660 , 777206 , 389376 , 571929 , 528189 , 475569 , 554360 , 524768 , 416305 , 461010 , 518543 , 428463 , 525067 , 546435 , 639118 , 441928 , 523973 , 573789 , 511747 , 498512 , 520110 , 644186 , 436447 , 527726 , 508309 , 553714 , 519718 , 575832 , 731326 , 475208 , 429574 , 512347 , 484392 , 658661 , 495701 , 559081 , 460731 , 659654 , 506820 , 676333 , 657670 , 587875 , 515223 );
Copy
4
2.33 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
389376
394786
395234
416305
428027
428463
429574
436447
441928
460731
461010
475208
475569
475576
484392
495701
498512
506820
508309
511747
512347
514014
515223
518543
519718
520110
520488
523973
524130
524768
525067
527334
527726
528189
546435
552151
553714
554360
559081
561259
567369
571929
573720
573789
575832
587875
629440
629701
639118
644186
657670
658661
659654
676333
697657
699651
701660
731326
732778
741932
766186
775550
777206
790244
799500
799836
804871
]
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 (389376 , 394786 , 395234 , 416305 , 428027 , 428463 , 429574 , 436447 , 441928 , 460731 , 461010 , 475208 , 475569 , 475576 , 484392 , 495701 , 498512 , 506820 , 508309 , 511747 , 512347 , 514014 , 515223 , 518543 , 519718 , 520110 , 520488 , 523973 , 524130 , 524768 , 525067 , 527334 , 527726 , 528189 , 546435 , 552151 , 553714 , 554360 , 559081 , 561259 , 567369 , 571929 , 573720 , 573789 , 575832 , 587875 , 629440 , 629701 , 639118 , 644186 , 657670 , 658661 , 659654 , 676333 , 697657 , 699651 , 701660 , 731326 , 732778 , 741932 , 766186 , 775550 , 777206 , 790244 , 799500 , 799836 , 804871 );
Copy
5
96.12 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
389376
394786
395234
416305
428027
428463
429574
436447
441928
460731
461010
475208
475569
475576
484392
495701
498512
506820
508309
511747
512347
514014
515223
518543
519718
520110
520488
523973
524130
524768
525067
527334
527726
528189
546435
552151
553714
554360
559081
561259
567369
571929
573720
573789
575832
587875
629440
629701
639118
644186
657670
658661
659654
676333
697657
699651
701660
731326
732778
741932
766186
775550
777206
790244
799500
799836
804871
]
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 (389376 , 394786 , 395234 , 416305 , 428027 , 428463 , 429574 , 436447 , 441928 , 460731 , 461010 , 475208 , 475569 , 475576 , 484392 , 495701 , 498512 , 506820 , 508309 , 511747 , 512347 , 514014 , 515223 , 518543 , 519718 , 520110 , 520488 , 523973 , 524130 , 524768 , 525067 , 527334 , 527726 , 528189 , 546435 , 552151 , 553714 , 554360 , 559081 , 561259 , 567369 , 571929 , 573720 , 573789 , 575832 , 587875 , 629440 , 629701 , 639118 , 644186 , 657670 , 658661 , 659654 , 676333 , 697657 , 699651 , 701660 , 731326 , 732778 , 741932 , 766186 , 775550 , 777206 , 790244 , 799500 , 799836 , 804871 );
Copy