3
12.56 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
447146
447435
412733
814657
455775
705789
387015
428241
505977
671626
386460
659412
427341
823707
590837
755854
787943
326300
565674
398201
446897
506485
531647
566764
641886
609436
436687
475483
796539
465326
472399
496454
123614
397699
514033
584257
555571
659439
494692
687174
608878
396640
449678
620852
654914
429223
507500
440698
465548
593649
447524
671667
592314
596412
468006
518548
469553
552296
501748
519486
586597
507511
463913
413826
622932
625675
536397
677025
]
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 (447146 , 447435 , 412733 , 814657 , 455775 , 705789 , 387015 , 428241 , 505977 , 671626 , 386460 , 659412 , 427341 , 823707 , 590837 , 755854 , 787943 , 326300 , 565674 , 398201 , 446897 , 506485 , 531647 , 566764 , 641886 , 609436 , 436687 , 475483 , 796539 , 465326 , 472399 , 496454 , 123614 , 397699 , 514033 , 584257 , 555571 , 659439 , 494692 , 687174 , 608878 , 396640 , 449678 , 620852 , 654914 , 429223 , 507500 , 440698 , 465548 , 593649 , 447524 , 671667 , 592314 , 596412 , 468006 , 518548 , 469553 , 552296 , 501748 , 519486 , 586597 , 507511 , 463913 , 413826 , 622932 , 625675 , 536397 , 677025 );
Copy
4
2.47 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
123614
326300
386460
387015
396640
397699
398201
412733
413826
427341
428241
429223
436687
440698
446897
447146
447435
447524
449678
455775
463913
465326
465548
468006
469553
472399
475483
494692
496454
501748
505977
506485
507500
507511
514033
518548
519486
531647
536397
552296
555571
565674
566764
584257
586597
590837
592314
593649
596412
608878
609436
620852
622932
625675
641886
654914
659412
659439
671626
671667
677025
687174
705789
755854
787943
796539
814657
823707
]
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 (123614 , 326300 , 386460 , 387015 , 396640 , 397699 , 398201 , 412733 , 413826 , 427341 , 428241 , 429223 , 436687 , 440698 , 446897 , 447146 , 447435 , 447524 , 449678 , 455775 , 463913 , 465326 , 465548 , 468006 , 469553 , 472399 , 475483 , 494692 , 496454 , 501748 , 505977 , 506485 , 507500 , 507511 , 514033 , 518548 , 519486 , 531647 , 536397 , 552296 , 555571 , 565674 , 566764 , 584257 , 586597 , 590837 , 592314 , 593649 , 596412 , 608878 , 609436 , 620852 , 622932 , 625675 , 641886 , 654914 , 659412 , 659439 , 671626 , 671667 , 677025 , 687174 , 705789 , 755854 , 787943 , 796539 , 814657 , 823707 );
Copy
5
118.05 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
123614
326300
386460
387015
396640
397699
398201
412733
413826
427341
428241
429223
436687
440698
446897
447146
447435
447524
449678
455775
463913
465326
465548
468006
469553
472399
475483
494692
496454
501748
505977
506485
507500
507511
514033
518548
519486
531647
536397
552296
555571
565674
566764
584257
586597
590837
592314
593649
596412
608878
609436
620852
622932
625675
641886
654914
659412
659439
671626
671667
677025
687174
705789
755854
787943
796539
814657
823707
]
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 (123614 , 326300 , 386460 , 387015 , 396640 , 397699 , 398201 , 412733 , 413826 , 427341 , 428241 , 429223 , 436687 , 440698 , 446897 , 447146 , 447435 , 447524 , 449678 , 455775 , 463913 , 465326 , 465548 , 468006 , 469553 , 472399 , 475483 , 494692 , 496454 , 501748 , 505977 , 506485 , 507500 , 507511 , 514033 , 518548 , 519486 , 531647 , 536397 , 552296 , 555571 , 565674 , 566764 , 584257 , 586597 , 590837 , 592314 , 593649 , 596412 , 608878 , 609436 , 620852 , 622932 , 625675 , 641886 , 654914 , 659412 , 659439 , 671626 , 671667 , 677025 , 687174 , 705789 , 755854 , 787943 , 796539 , 814657 , 823707 );
Copy