3
14.61 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
580786
545821
551597
662537
554752
558067
624239
626120
798489
741855
480334
410953
451331
518173
529359
387858
415534
423656
435523
568420
650808
643851
631632
644168
757090
727180
437146
458061
441031
459983
479568
444336
454002
419096
472438
455826
503383
525448
434946
435236
516511
581242
636593
789840
438638
445988
440613
519789
511936
516599
522451
496448
501384
527978
449029
535091
617408
447253
464620
457130
457143
469755
486024
468039
525450
656183
616778
514125
466376
501958
508541
428315
564675
604289
]
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 (580786 , 545821 , 551597 , 662537 , 554752 , 558067 , 624239 , 626120 , 798489 , 741855 , 480334 , 410953 , 451331 , 518173 , 529359 , 387858 , 415534 , 423656 , 435523 , 568420 , 650808 , 643851 , 631632 , 644168 , 757090 , 727180 , 437146 , 458061 , 441031 , 459983 , 479568 , 444336 , 454002 , 419096 , 472438 , 455826 , 503383 , 525448 , 434946 , 435236 , 516511 , 581242 , 636593 , 789840 , 438638 , 445988 , 440613 , 519789 , 511936 , 516599 , 522451 , 496448 , 501384 , 527978 , 449029 , 535091 , 617408 , 447253 , 464620 , 457130 , 457143 , 469755 , 486024 , 468039 , 525450 , 656183 , 616778 , 514125 , 466376 , 501958 , 508541 , 428315 , 564675 , 604289 );
Copy
4
3.31 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
387858
410953
415534
419096
423656
428315
434946
435236
435523
437146
438638
440613
441031
444336
445988
447253
449029
451331
454002
455826
457130
457143
458061
464620
466376
468039
469755
472438
479568
480334
486024
496448
501384
501958
503383
508541
511936
514125
516511
516599
518173
519789
522451
525448
525450
527978
529359
535091
545821
551597
554752
558067
564675
568420
580786
581242
604289
616778
617408
624239
626120
631632
636593
643851
644168
650808
656183
662537
727180
741855
757090
789840
798489
]
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 (387858 , 410953 , 415534 , 419096 , 423656 , 428315 , 434946 , 435236 , 435523 , 437146 , 438638 , 440613 , 441031 , 444336 , 445988 , 447253 , 449029 , 451331 , 454002 , 455826 , 457130 , 457143 , 458061 , 464620 , 466376 , 468039 , 469755 , 472438 , 479568 , 480334 , 486024 , 496448 , 501384 , 501958 , 503383 , 508541 , 511936 , 514125 , 516511 , 516599 , 518173 , 519789 , 522451 , 525448 , 525450 , 527978 , 529359 , 535091 , 545821 , 551597 , 554752 , 558067 , 564675 , 568420 , 580786 , 581242 , 604289 , 616778 , 617408 , 624239 , 626120 , 631632 , 636593 , 643851 , 644168 , 650808 , 656183 , 662537 , 727180 , 741855 , 757090 , 789840 , 798489 );
Copy
5
83.46 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
387858
410953
415534
419096
423656
428315
434946
435236
435523
437146
438638
440613
441031
444336
445988
447253
449029
451331
454002
455826
457130
457143
458061
464620
466376
468039
469755
472438
479568
480334
486024
496448
501384
501958
503383
508541
511936
514125
516511
516599
518173
519789
522451
525448
525450
527978
529359
535091
545821
551597
554752
558067
564675
568420
580786
581242
604289
616778
617408
624239
626120
631632
636593
643851
644168
650808
656183
662537
727180
741855
757090
789840
798489
]
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 (387858 , 410953 , 415534 , 419096 , 423656 , 428315 , 434946 , 435236 , 435523 , 437146 , 438638 , 440613 , 441031 , 444336 , 445988 , 447253 , 449029 , 451331 , 454002 , 455826 , 457130 , 457143 , 458061 , 464620 , 466376 , 468039 , 469755 , 472438 , 479568 , 480334 , 486024 , 496448 , 501384 , 501958 , 503383 , 508541 , 511936 , 514125 , 516511 , 516599 , 518173 , 519789 , 522451 , 525448 , 525450 , 527978 , 529359 , 535091 , 545821 , 551597 , 554752 , 558067 , 564675 , 568420 , 580786 , 581242 , 604289 , 616778 , 617408 , 624239 , 626120 , 631632 , 636593 , 643851 , 644168 , 650808 , 656183 , 662537 , 727180 , 741855 , 757090 , 789840 , 798489 );
Copy