3
11.39 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
453534
510885
534481
530624
523204
681547
492364
622817
406303
430572
409404
521353
434702
567363
458523
537654
597739
470615
417349
442301
490428
580869
681647
566578
530373
530784
419861
548606
568177
460729
525379
509703
595795
484728
516053
637422
515999
419740
569778
636985
540559
518558
574235
429761
616686
601584
428372
681554
603205
604051
562496
485464
603364
628336
559061
696582
504098
524986
521453
677777
634218
514809
541588
]
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 (453534 , 510885 , 534481 , 530624 , 523204 , 681547 , 492364 , 622817 , 406303 , 430572 , 409404 , 521353 , 434702 , 567363 , 458523 , 537654 , 597739 , 470615 , 417349 , 442301 , 490428 , 580869 , 681647 , 566578 , 530373 , 530784 , 419861 , 548606 , 568177 , 460729 , 525379 , 509703 , 595795 , 484728 , 516053 , 637422 , 515999 , 419740 , 569778 , 636985 , 540559 , 518558 , 574235 , 429761 , 616686 , 601584 , 428372 , 681554 , 603205 , 604051 , 562496 , 485464 , 603364 , 628336 , 559061 , 696582 , 504098 , 524986 , 521453 , 677777 , 634218 , 514809 , 541588 );
Copy
4
2.51 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
406303
409404
417349
419740
419861
428372
429761
430572
434702
442301
453534
458523
460729
470615
484728
485464
490428
492364
504098
509703
510885
514809
515999
516053
518558
521353
521453
523204
524986
525379
530373
530624
530784
534481
537654
540559
541588
548606
559061
562496
566578
567363
568177
569778
574235
580869
595795
597739
601584
603205
603364
604051
616686
622817
628336
634218
636985
637422
677777
681547
681554
681647
696582
]
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 (406303 , 409404 , 417349 , 419740 , 419861 , 428372 , 429761 , 430572 , 434702 , 442301 , 453534 , 458523 , 460729 , 470615 , 484728 , 485464 , 490428 , 492364 , 504098 , 509703 , 510885 , 514809 , 515999 , 516053 , 518558 , 521353 , 521453 , 523204 , 524986 , 525379 , 530373 , 530624 , 530784 , 534481 , 537654 , 540559 , 541588 , 548606 , 559061 , 562496 , 566578 , 567363 , 568177 , 569778 , 574235 , 580869 , 595795 , 597739 , 601584 , 603205 , 603364 , 604051 , 616686 , 622817 , 628336 , 634218 , 636985 , 637422 , 677777 , 681547 , 681554 , 681647 , 696582 );
Copy
5
204.71 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
406303
409404
417349
419740
419861
428372
429761
430572
434702
442301
453534
458523
460729
470615
484728
485464
490428
492364
504098
509703
510885
514809
515999
516053
518558
521353
521453
523204
524986
525379
530373
530624
530784
534481
537654
540559
541588
548606
559061
562496
566578
567363
568177
569778
574235
580869
595795
597739
601584
603205
603364
604051
616686
622817
628336
634218
636985
637422
677777
681547
681554
681647
696582
]
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 (406303 , 409404 , 417349 , 419740 , 419861 , 428372 , 429761 , 430572 , 434702 , 442301 , 453534 , 458523 , 460729 , 470615 , 484728 , 485464 , 490428 , 492364 , 504098 , 509703 , 510885 , 514809 , 515999 , 516053 , 518558 , 521353 , 521453 , 523204 , 524986 , 525379 , 530373 , 530624 , 530784 , 534481 , 537654 , 540559 , 541588 , 548606 , 559061 , 562496 , 566578 , 567363 , 568177 , 569778 , 574235 , 580869 , 595795 , 597739 , 601584 , 603205 , 603364 , 604051 , 616686 , 622817 , 628336 , 634218 , 636985 , 637422 , 677777 , 681547 , 681554 , 681647 , 696582 );
Copy