4
9.41 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
702008
782454
790551
783386
731878
786106
779095
783955
755644
586925
777479
803931
746137
782537
817978
730038
589588
773821
721381
481711
670833
733307
626279
599549
517399
484544
518076
567689
770396
821105
783168
707093
540931
635125
620243
602003
547577
730715
427790
528582
427794
560792
529083
421762
501591
498821
803334
473084
497420
522198
505702
469780
507726
492811
442596
511271
507890
444260
498989
498994
427845
501734
448249
517454
]
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 (702008 , 782454 , 790551 , 783386 , 731878 , 786106 , 779095 , 783955 , 755644 , 586925 , 777479 , 803931 , 746137 , 782537 , 817978 , 730038 , 589588 , 773821 , 721381 , 481711 , 670833 , 733307 , 626279 , 599549 , 517399 , 484544 , 518076 , 567689 , 770396 , 821105 , 783168 , 707093 , 540931 , 635125 , 620243 , 602003 , 547577 , 730715 , 427790 , 528582 , 427794 , 560792 , 529083 , 421762 , 501591 , 498821 , 803334 , 473084 , 497420 , 522198 , 505702 , 469780 , 507726 , 492811 , 442596 , 511271 , 507890 , 444260 , 498989 , 498994 , 427845 , 501734 , 448249 , 517454 );
Copy
5
3.02 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
421762
427790
427794
427845
442596
444260
448249
469780
473084
481711
484544
492811
497420
498821
498989
498994
501591
501734
505702
507726
507890
511271
517399
517454
518076
522198
528582
529083
540931
547577
560792
567689
586925
589588
599549
602003
620243
626279
635125
670833
702008
707093
721381
730038
730715
731878
733307
746137
755644
770396
773821
777479
779095
782454
782537
783168
783386
783955
786106
790551
803334
803931
817978
821105
]
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 (421762 , 427790 , 427794 , 427845 , 442596 , 444260 , 448249 , 469780 , 473084 , 481711 , 484544 , 492811 , 497420 , 498821 , 498989 , 498994 , 501591 , 501734 , 505702 , 507726 , 507890 , 511271 , 517399 , 517454 , 518076 , 522198 , 528582 , 529083 , 540931 , 547577 , 560792 , 567689 , 586925 , 589588 , 599549 , 602003 , 620243 , 626279 , 635125 , 670833 , 702008 , 707093 , 721381 , 730038 , 730715 , 731878 , 733307 , 746137 , 755644 , 770396 , 773821 , 777479 , 779095 , 782454 , 782537 , 783168 , 783386 , 783955 , 786106 , 790551 , 803334 , 803931 , 817978 , 821105 );
Copy
6
95.39 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
421762
427790
427794
427845
442596
444260
448249
469780
473084
481711
484544
492811
497420
498821
498989
498994
501591
501734
505702
507726
507890
511271
517399
517454
518076
522198
528582
529083
540931
547577
560792
567689
586925
589588
599549
602003
620243
626279
635125
670833
702008
707093
721381
730038
730715
731878
733307
746137
755644
770396
773821
777479
779095
782454
782537
783168
783386
783955
786106
790551
803334
803931
817978
821105
]
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 (421762 , 427790 , 427794 , 427845 , 442596 , 444260 , 448249 , 469780 , 473084 , 481711 , 484544 , 492811 , 497420 , 498821 , 498989 , 498994 , 501591 , 501734 , 505702 , 507726 , 507890 , 511271 , 517399 , 517454 , 518076 , 522198 , 528582 , 529083 , 540931 , 547577 , 560792 , 567689 , 586925 , 589588 , 599549 , 602003 , 620243 , 626279 , 635125 , 670833 , 702008 , 707093 , 721381 , 730038 , 730715 , 731878 , 733307 , 746137 , 755644 , 770396 , 773821 , 777479 , 779095 , 782454 , 782537 , 783168 , 783386 , 783955 , 786106 , 790551 , 803334 , 803931 , 817978 , 821105 );
Copy