4
11.97 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
527334
629701
514014
567369
561259
524130
520488
394786
768429
629440
510390
799436
775550
763474
799836
697657
791102
741932
469726
428027
552151
389376
475576
395234
639118
518543
416305
475569
571929
441928
523973
554360
716205
525067
461010
428463
528189
644186
436447
527726
508309
520110
511747
519136
573789
498512
475208
401465
519718
553714
575832
731326
512347
484392
429574
658661
460731
506820
495701
659654
560486
676333
657670
587875
515223
777206
619407
559081
699651
573720
521574
755455
524768
]
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 , 527334 , 629701 , 514014 , 567369 , 561259 , 524130 , 520488 , 394786 , 768429 , 629440 , 510390 , 799436 , 775550 , 763474 , 799836 , 697657 , 791102 , 741932 , 469726 , 428027 , 552151 , 389376 , 475576 , 395234 , 639118 , 518543 , 416305 , 475569 , 571929 , 441928 , 523973 , 554360 , 716205 , 525067 , 461010 , 428463 , 528189 , 644186 , 436447 , 527726 , 508309 , 520110 , 511747 , 519136 , 573789 , 498512 , 475208 , 401465 , 519718 , 553714 , 575832 , 731326 , 512347 , 484392 , 429574 , 658661 , 460731 , 506820 , 495701 , 659654 , 560486 , 676333 , 657670 , 587875 , 515223 , 777206 , 619407 , 559081 , 699651 , 573720 , 521574 , 755455 , 524768 );
Copy
5
2.61 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
401465
416305
428027
428463
429574
436447
441928
460731
461010
469726
475208
475569
475576
484392
495701
498512
506820
508309
510390
511747
512347
514014
515223
518543
519136
519718
520110
520488
521574
523973
524130
524768
525067
527334
527726
528189
552151
553714
554360
559081
560486
561259
567369
571929
573720
573789
575832
587875
619407
629440
629701
639118
644186
657670
658661
659654
676333
697657
699651
716205
731326
741932
755455
763474
766186
768429
775550
777206
791102
799436
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 , 401465 , 416305 , 428027 , 428463 , 429574 , 436447 , 441928 , 460731 , 461010 , 469726 , 475208 , 475569 , 475576 , 484392 , 495701 , 498512 , 506820 , 508309 , 510390 , 511747 , 512347 , 514014 , 515223 , 518543 , 519136 , 519718 , 520110 , 520488 , 521574 , 523973 , 524130 , 524768 , 525067 , 527334 , 527726 , 528189 , 552151 , 553714 , 554360 , 559081 , 560486 , 561259 , 567369 , 571929 , 573720 , 573789 , 575832 , 587875 , 619407 , 629440 , 629701 , 639118 , 644186 , 657670 , 658661 , 659654 , 676333 , 697657 , 699651 , 716205 , 731326 , 741932 , 755455 , 763474 , 766186 , 768429 , 775550 , 777206 , 791102 , 799436 , 799836 , 804871 );
Copy
6
85.10 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
401465
416305
428027
428463
429574
436447
441928
460731
461010
469726
475208
475569
475576
484392
495701
498512
506820
508309
510390
511747
512347
514014
515223
518543
519136
519718
520110
520488
521574
523973
524130
524768
525067
527334
527726
528189
552151
553714
554360
559081
560486
561259
567369
571929
573720
573789
575832
587875
619407
629440
629701
639118
644186
657670
658661
659654
676333
697657
699651
716205
731326
741932
755455
763474
766186
768429
775550
777206
791102
799436
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 , 401465 , 416305 , 428027 , 428463 , 429574 , 436447 , 441928 , 460731 , 461010 , 469726 , 475208 , 475569 , 475576 , 484392 , 495701 , 498512 , 506820 , 508309 , 510390 , 511747 , 512347 , 514014 , 515223 , 518543 , 519136 , 519718 , 520110 , 520488 , 521574 , 523973 , 524130 , 524768 , 525067 , 527334 , 527726 , 528189 , 552151 , 553714 , 554360 , 559081 , 560486 , 561259 , 567369 , 571929 , 573720 , 573789 , 575832 , 587875 , 619407 , 629440 , 629701 , 639118 , 644186 , 657670 , 658661 , 659654 , 676333 , 697657 , 699651 , 716205 , 731326 , 741932 , 755455 , 763474 , 766186 , 768429 , 775550 , 777206 , 791102 , 799436 , 799836 , 804871 );
Copy