3
18.74 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
401318
420635
439819
501497
596839
445436
539203
506500
524628
649953
626337
751565
419370
402722
413901
497921
416982
470290
484673
559392
468630
450775
537210
518473
610588
448807
448810
556535
522345
533957
474035
489489
624226
541866
468666
565783
447835
559233
530762
534645
463757
463842
464139
530637
485454
512059
536691
536695
573393
469534
521001
514809
537198
390888
445564
574538
743057
395696
567416
510757
647893
495199
429425
526203
584539
487703
641413
494985
608431
624842
434192
521575
]
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 (401318 , 420635 , 439819 , 501497 , 596839 , 445436 , 539203 , 506500 , 524628 , 649953 , 626337 , 751565 , 419370 , 402722 , 413901 , 497921 , 416982 , 470290 , 484673 , 559392 , 468630 , 450775 , 537210 , 518473 , 610588 , 448807 , 448810 , 556535 , 522345 , 533957 , 474035 , 489489 , 624226 , 541866 , 468666 , 565783 , 447835 , 559233 , 530762 , 534645 , 463757 , 463842 , 464139 , 530637 , 485454 , 512059 , 536691 , 536695 , 573393 , 469534 , 521001 , 514809 , 537198 , 390888 , 445564 , 574538 , 743057 , 395696 , 567416 , 510757 , 647893 , 495199 , 429425 , 526203 , 584539 , 487703 , 641413 , 494985 , 608431 , 624842 , 434192 , 521575 );
Copy
4
3.44 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
390888
395696
401318
402722
413901
416982
419370
420635
429425
434192
439819
445436
445564
447835
448807
448810
450775
463757
463842
464139
468630
468666
469534
470290
474035
484673
485454
487703
489489
494985
495199
497921
501497
506500
510757
512059
514809
518473
521001
521575
522345
524628
526203
530637
530762
533957
534645
536691
536695
537198
537210
539203
541866
556535
559233
559392
565783
567416
573393
574538
584539
596839
608431
610588
624226
624842
626337
641413
647893
649953
743057
751565
]
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 (390888 , 395696 , 401318 , 402722 , 413901 , 416982 , 419370 , 420635 , 429425 , 434192 , 439819 , 445436 , 445564 , 447835 , 448807 , 448810 , 450775 , 463757 , 463842 , 464139 , 468630 , 468666 , 469534 , 470290 , 474035 , 484673 , 485454 , 487703 , 489489 , 494985 , 495199 , 497921 , 501497 , 506500 , 510757 , 512059 , 514809 , 518473 , 521001 , 521575 , 522345 , 524628 , 526203 , 530637 , 530762 , 533957 , 534645 , 536691 , 536695 , 537198 , 537210 , 539203 , 541866 , 556535 , 559233 , 559392 , 565783 , 567416 , 573393 , 574538 , 584539 , 596839 , 608431 , 610588 , 624226 , 624842 , 626337 , 641413 , 647893 , 649953 , 743057 , 751565 );
Copy
5
129.77 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
390888
395696
401318
402722
413901
416982
419370
420635
429425
434192
439819
445436
445564
447835
448807
448810
450775
463757
463842
464139
468630
468666
469534
470290
474035
484673
485454
487703
489489
494985
495199
497921
501497
506500
510757
512059
514809
518473
521001
521575
522345
524628
526203
530637
530762
533957
534645
536691
536695
537198
537210
539203
541866
556535
559233
559392
565783
567416
573393
574538
584539
596839
608431
610588
624226
624842
626337
641413
647893
649953
743057
751565
]
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 (390888 , 395696 , 401318 , 402722 , 413901 , 416982 , 419370 , 420635 , 429425 , 434192 , 439819 , 445436 , 445564 , 447835 , 448807 , 448810 , 450775 , 463757 , 463842 , 464139 , 468630 , 468666 , 469534 , 470290 , 474035 , 484673 , 485454 , 487703 , 489489 , 494985 , 495199 , 497921 , 501497 , 506500 , 510757 , 512059 , 514809 , 518473 , 521001 , 521575 , 522345 , 524628 , 526203 , 530637 , 530762 , 533957 , 534645 , 536691 , 536695 , 537198 , 537210 , 539203 , 541866 , 556535 , 559233 , 559392 , 565783 , 567416 , 573393 , 574538 , 584539 , 596839 , 608431 , 610588 , 624226 , 624842 , 626337 , 641413 , 647893 , 649953 , 743057 , 751565 );
Copy