3
12.12 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
535487
803180
803188
673974
708480
807689
531150
654274
641704
787771
742166
680212
600370
607728
808115
430750
814137
566116
607013
807699
811511
774545
805774
444577
512890
654596
774482
805069
805413
805429
518369
583659
681408
526819
525824
601103
600365
581720
603653
772693
588597
812078
823473
487254
742009
499743
430915
401979
434532
447645
464101
487504
550603
446587
553101
443757
419868
521741
461346
477422
594208
479657
513659
483499
477545
464094
526814
433319
626541
]
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 (535487 , 803180 , 803188 , 673974 , 708480 , 807689 , 531150 , 654274 , 641704 , 787771 , 742166 , 680212 , 600370 , 607728 , 808115 , 430750 , 814137 , 566116 , 607013 , 807699 , 811511 , 774545 , 805774 , 444577 , 512890 , 654596 , 774482 , 805069 , 805413 , 805429 , 518369 , 583659 , 681408 , 526819 , 525824 , 601103 , 600365 , 581720 , 603653 , 772693 , 588597 , 812078 , 823473 , 487254 , 742009 , 499743 , 430915 , 401979 , 434532 , 447645 , 464101 , 487504 , 550603 , 446587 , 553101 , 443757 , 419868 , 521741 , 461346 , 477422 , 594208 , 479657 , 513659 , 483499 , 477545 , 464094 , 526814 , 433319 , 626541 );
Copy
4
3.27 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
401979
419868
430750
430915
433319
434532
443757
444577
446587
447645
461346
464094
464101
477422
477545
479657
483499
487254
487504
499743
512890
513659
518369
521741
525824
526814
526819
531150
535487
550603
553101
566116
581720
583659
588597
594208
600365
600370
601103
603653
607013
607728
626541
641704
654274
654596
673974
680212
681408
708480
742009
742166
772693
774482
774545
787771
803180
803188
805069
805413
805429
805774
807689
807699
808115
811511
812078
814137
823473
]
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 (401979 , 419868 , 430750 , 430915 , 433319 , 434532 , 443757 , 444577 , 446587 , 447645 , 461346 , 464094 , 464101 , 477422 , 477545 , 479657 , 483499 , 487254 , 487504 , 499743 , 512890 , 513659 , 518369 , 521741 , 525824 , 526814 , 526819 , 531150 , 535487 , 550603 , 553101 , 566116 , 581720 , 583659 , 588597 , 594208 , 600365 , 600370 , 601103 , 603653 , 607013 , 607728 , 626541 , 641704 , 654274 , 654596 , 673974 , 680212 , 681408 , 708480 , 742009 , 742166 , 772693 , 774482 , 774545 , 787771 , 803180 , 803188 , 805069 , 805413 , 805429 , 805774 , 807689 , 807699 , 808115 , 811511 , 812078 , 814137 , 823473 );
Copy
5
82.58 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
401979
419868
430750
430915
433319
434532
443757
444577
446587
447645
461346
464094
464101
477422
477545
479657
483499
487254
487504
499743
512890
513659
518369
521741
525824
526814
526819
531150
535487
550603
553101
566116
581720
583659
588597
594208
600365
600370
601103
603653
607013
607728
626541
641704
654274
654596
673974
680212
681408
708480
742009
742166
772693
774482
774545
787771
803180
803188
805069
805413
805429
805774
807689
807699
808115
811511
812078
814137
823473
]
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 (401979 , 419868 , 430750 , 430915 , 433319 , 434532 , 443757 , 444577 , 446587 , 447645 , 461346 , 464094 , 464101 , 477422 , 477545 , 479657 , 483499 , 487254 , 487504 , 499743 , 512890 , 513659 , 518369 , 521741 , 525824 , 526814 , 526819 , 531150 , 535487 , 550603 , 553101 , 566116 , 581720 , 583659 , 588597 , 594208 , 600365 , 600370 , 601103 , 603653 , 607013 , 607728 , 626541 , 641704 , 654274 , 654596 , 673974 , 680212 , 681408 , 708480 , 742009 , 742166 , 772693 , 774482 , 774545 , 787771 , 803180 , 803188 , 805069 , 805413 , 805429 , 805774 , 807689 , 807699 , 808115 , 811511 , 812078 , 814137 , 823473 );
Copy