3
11.88 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
387765
401961
568317
446795
443348
514372
443956
487350
408412
471472
505271
428373
463456
466562
511178
473511
408136
412071
474650
468554
445070
526118
475285
439578
464128
497757
506271
454112
462000
489023
517708
416850
461872
464391
472931
424295
466229
517428
596823
452531
592288
588992
486400
557995
428398
494702
391597
450815
406593
426456
628426
491208
563546
548596
187818
562108
516308
597282
585007
590404
502006
525154
471494
619519
622938
623678
559279
619527
]
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 (387765 , 401961 , 568317 , 446795 , 443348 , 514372 , 443956 , 487350 , 408412 , 471472 , 505271 , 428373 , 463456 , 466562 , 511178 , 473511 , 408136 , 412071 , 474650 , 468554 , 445070 , 526118 , 475285 , 439578 , 464128 , 497757 , 506271 , 454112 , 462000 , 489023 , 517708 , 416850 , 461872 , 464391 , 472931 , 424295 , 466229 , 517428 , 596823 , 452531 , 592288 , 588992 , 486400 , 557995 , 428398 , 494702 , 391597 , 450815 , 406593 , 426456 , 628426 , 491208 , 563546 , 548596 , 187818 , 562108 , 516308 , 597282 , 585007 , 590404 , 502006 , 525154 , 471494 , 619519 , 622938 , 623678 , 559279 , 619527 );
Copy
4
2.95 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
187818
387765
391597
401961
406593
408136
408412
412071
416850
424295
426456
428373
428398
439578
443348
443956
445070
446795
450815
452531
454112
461872
462000
463456
464128
464391
466229
466562
468554
471472
471494
472931
473511
474650
475285
486400
487350
489023
491208
494702
497757
502006
505271
506271
511178
514372
516308
517428
517708
525154
526118
548596
557995
559279
562108
563546
568317
585007
588992
590404
592288
596823
597282
619519
619527
622938
623678
628426
]
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 (187818 , 387765 , 391597 , 401961 , 406593 , 408136 , 408412 , 412071 , 416850 , 424295 , 426456 , 428373 , 428398 , 439578 , 443348 , 443956 , 445070 , 446795 , 450815 , 452531 , 454112 , 461872 , 462000 , 463456 , 464128 , 464391 , 466229 , 466562 , 468554 , 471472 , 471494 , 472931 , 473511 , 474650 , 475285 , 486400 , 487350 , 489023 , 491208 , 494702 , 497757 , 502006 , 505271 , 506271 , 511178 , 514372 , 516308 , 517428 , 517708 , 525154 , 526118 , 548596 , 557995 , 559279 , 562108 , 563546 , 568317 , 585007 , 588992 , 590404 , 592288 , 596823 , 597282 , 619519 , 619527 , 622938 , 623678 , 628426 );
Copy
5
77.15 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
187818
387765
391597
401961
406593
408136
408412
412071
416850
424295
426456
428373
428398
439578
443348
443956
445070
446795
450815
452531
454112
461872
462000
463456
464128
464391
466229
466562
468554
471472
471494
472931
473511
474650
475285
486400
487350
489023
491208
494702
497757
502006
505271
506271
511178
514372
516308
517428
517708
525154
526118
548596
557995
559279
562108
563546
568317
585007
588992
590404
592288
596823
597282
619519
619527
622938
623678
628426
]
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 (187818 , 387765 , 391597 , 401961 , 406593 , 408136 , 408412 , 412071 , 416850 , 424295 , 426456 , 428373 , 428398 , 439578 , 443348 , 443956 , 445070 , 446795 , 450815 , 452531 , 454112 , 461872 , 462000 , 463456 , 464128 , 464391 , 466229 , 466562 , 468554 , 471472 , 471494 , 472931 , 473511 , 474650 , 475285 , 486400 , 487350 , 489023 , 491208 , 494702 , 497757 , 502006 , 505271 , 506271 , 511178 , 514372 , 516308 , 517428 , 517708 , 525154 , 526118 , 548596 , 557995 , 559279 , 562108 , 563546 , 568317 , 585007 , 588992 , 590404 , 592288 , 596823 , 597282 , 619519 , 619527 , 622938 , 623678 , 628426 );
Copy