3
13.24 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
67294
417554
161969
401391
430450
408894
84510
392021
487973
397490
465725
409158
442107
475431
488517
390746
401398
456435
416866
419461
451638
466390
591984
454963
402891
403690
411848
511696
512603
509984
496091
421418
429834
427907
441561
458934
459187
468269
470401
516640
464189
450292
465730
480508
486101
489746
187592
404281
509654
401202
448465
455381
484995
513760
521494
427199
478038
449246
446947
528937
502616
457292
450339
481971
459512
603963
624165
584049
]
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 (67294 , 417554 , 161969 , 401391 , 430450 , 408894 , 84510 , 392021 , 487973 , 397490 , 465725 , 409158 , 442107 , 475431 , 488517 , 390746 , 401398 , 456435 , 416866 , 419461 , 451638 , 466390 , 591984 , 454963 , 402891 , 403690 , 411848 , 511696 , 512603 , 509984 , 496091 , 421418 , 429834 , 427907 , 441561 , 458934 , 459187 , 468269 , 470401 , 516640 , 464189 , 450292 , 465730 , 480508 , 486101 , 489746 , 187592 , 404281 , 509654 , 401202 , 448465 , 455381 , 484995 , 513760 , 521494 , 427199 , 478038 , 449246 , 446947 , 528937 , 502616 , 457292 , 450339 , 481971 , 459512 , 603963 , 624165 , 584049 );
Copy
4
206.16 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
67294
84510
161969
187592
390746
392021
397490
401202
401391
401398
402891
403690
404281
408894
409158
411848
416866
417554
419461
421418
427199
427907
429834
430450
441561
442107
446947
448465
449246
450292
450339
451638
454963
455381
456435
457292
458934
459187
459512
464189
465725
465730
466390
468269
470401
475431
478038
480508
481971
484995
486101
487973
488517
489746
496091
502616
509654
509984
511696
512603
513760
516640
521494
528937
584049
591984
603963
624165
]
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 (67294 , 84510 , 161969 , 187592 , 390746 , 392021 , 397490 , 401202 , 401391 , 401398 , 402891 , 403690 , 404281 , 408894 , 409158 , 411848 , 416866 , 417554 , 419461 , 421418 , 427199 , 427907 , 429834 , 430450 , 441561 , 442107 , 446947 , 448465 , 449246 , 450292 , 450339 , 451638 , 454963 , 455381 , 456435 , 457292 , 458934 , 459187 , 459512 , 464189 , 465725 , 465730 , 466390 , 468269 , 470401 , 475431 , 478038 , 480508 , 481971 , 484995 , 486101 , 487973 , 488517 , 489746 , 496091 , 502616 , 509654 , 509984 , 511696 , 512603 , 513760 , 516640 , 521494 , 528937 , 584049 , 591984 , 603963 , 624165 );
Copy
5
86.03 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
67294
84510
161969
187592
390746
392021
397490
401202
401391
401398
402891
403690
404281
408894
409158
411848
416866
417554
419461
421418
427199
427907
429834
430450
441561
442107
446947
448465
449246
450292
450339
451638
454963
455381
456435
457292
458934
459187
459512
464189
465725
465730
466390
468269
470401
475431
478038
480508
481971
484995
486101
487973
488517
489746
496091
502616
509654
509984
511696
512603
513760
516640
521494
528937
584049
591984
603963
624165
]
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 (67294 , 84510 , 161969 , 187592 , 390746 , 392021 , 397490 , 401202 , 401391 , 401398 , 402891 , 403690 , 404281 , 408894 , 409158 , 411848 , 416866 , 417554 , 419461 , 421418 , 427199 , 427907 , 429834 , 430450 , 441561 , 442107 , 446947 , 448465 , 449246 , 450292 , 450339 , 451638 , 454963 , 455381 , 456435 , 457292 , 458934 , 459187 , 459512 , 464189 , 465725 , 465730 , 466390 , 468269 , 470401 , 475431 , 478038 , 480508 , 481971 , 484995 , 486101 , 487973 , 488517 , 489746 , 496091 , 502616 , 509654 , 509984 , 511696 , 512603 , 513760 , 516640 , 521494 , 528937 , 584049 , 591984 , 603963 , 624165 );
Copy