4
10.70 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
714498
722687
620645
615660
761557
797247
725339
728899
747090
761561
788533
805221
679847
711569
722912
722706
594453
617087
594030
594166
607314
629560
593793
594024
805275
812876
759650
728458
726882
742694
712006
797126
811993
704218
704525
722915
604319
630547
635993
612614
805224
774178
761602
614428
809271
670117
615851
603610
603652
615812
805274
788260
702675
702679
532960
532948
696216
702680
612726
759639
679465
646029
633124
606997
704531
630764
615818
]
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 (714498 , 722687 , 620645 , 615660 , 761557 , 797247 , 725339 , 728899 , 747090 , 761561 , 788533 , 805221 , 679847 , 711569 , 722912 , 722706 , 594453 , 617087 , 594030 , 594166 , 607314 , 629560 , 593793 , 594024 , 805275 , 812876 , 759650 , 728458 , 726882 , 742694 , 712006 , 797126 , 811993 , 704218 , 704525 , 722915 , 604319 , 630547 , 635993 , 612614 , 805224 , 774178 , 761602 , 614428 , 809271 , 670117 , 615851 , 603610 , 603652 , 615812 , 805274 , 788260 , 702675 , 702679 , 532960 , 532948 , 696216 , 702680 , 612726 , 759639 , 679465 , 646029 , 633124 , 606997 , 704531 , 630764 , 615818 );
Copy
5
3.01 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
532948
532960
593793
594024
594030
594166
594453
603610
603652
604319
606997
607314
612614
612726
614428
615660
615812
615818
615851
617087
620645
629560
630547
630764
633124
635993
646029
670117
679465
679847
696216
702675
702679
702680
704218
704525
704531
711569
712006
714498
722687
722706
722912
722915
725339
726882
728458
728899
742694
747090
759639
759650
761557
761561
761602
774178
788260
788533
797126
797247
805221
805224
805274
805275
809271
811993
812876
]
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 (532948 , 532960 , 593793 , 594024 , 594030 , 594166 , 594453 , 603610 , 603652 , 604319 , 606997 , 607314 , 612614 , 612726 , 614428 , 615660 , 615812 , 615818 , 615851 , 617087 , 620645 , 629560 , 630547 , 630764 , 633124 , 635993 , 646029 , 670117 , 679465 , 679847 , 696216 , 702675 , 702679 , 702680 , 704218 , 704525 , 704531 , 711569 , 712006 , 714498 , 722687 , 722706 , 722912 , 722915 , 725339 , 726882 , 728458 , 728899 , 742694 , 747090 , 759639 , 759650 , 761557 , 761561 , 761602 , 774178 , 788260 , 788533 , 797126 , 797247 , 805221 , 805224 , 805274 , 805275 , 809271 , 811993 , 812876 );
Copy
6
163.87 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
532948
532960
593793
594024
594030
594166
594453
603610
603652
604319
606997
607314
612614
612726
614428
615660
615812
615818
615851
617087
620645
629560
630547
630764
633124
635993
646029
670117
679465
679847
696216
702675
702679
702680
704218
704525
704531
711569
712006
714498
722687
722706
722912
722915
725339
726882
728458
728899
742694
747090
759639
759650
761557
761561
761602
774178
788260
788533
797126
797247
805221
805224
805274
805275
809271
811993
812876
]
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 (532948 , 532960 , 593793 , 594024 , 594030 , 594166 , 594453 , 603610 , 603652 , 604319 , 606997 , 607314 , 612614 , 612726 , 614428 , 615660 , 615812 , 615818 , 615851 , 617087 , 620645 , 629560 , 630547 , 630764 , 633124 , 635993 , 646029 , 670117 , 679465 , 679847 , 696216 , 702675 , 702679 , 702680 , 704218 , 704525 , 704531 , 711569 , 712006 , 714498 , 722687 , 722706 , 722912 , 722915 , 725339 , 726882 , 728458 , 728899 , 742694 , 747090 , 759639 , 759650 , 761557 , 761561 , 761602 , 774178 , 788260 , 788533 , 797126 , 797247 , 805221 , 805224 , 805274 , 805275 , 809271 , 811993 , 812876 );
Copy