3
10.08 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
696430
571233
575329
580414
637120
595101
621165
621342
639628
791209
794265
799591
754168
766896
622474
803796
530385
535164
500802
535269
535374
537113
493231
562346
659405
550241
626810
593867
595054
595267
600251
630900
638380
485234
533926
497155
500913
502250
529267
526884
469116
582220
567155
572318
696233
702927
624502
640888
782516
790218
628095
639731
440632
558572
593872
643027
601699
484807
522191
442363
537236
662020
599803
480326
529290
575698
518633
]
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 (696430 , 571233 , 575329 , 580414 , 637120 , 595101 , 621165 , 621342 , 639628 , 791209 , 794265 , 799591 , 754168 , 766896 , 622474 , 803796 , 530385 , 535164 , 500802 , 535269 , 535374 , 537113 , 493231 , 562346 , 659405 , 550241 , 626810 , 593867 , 595054 , 595267 , 600251 , 630900 , 638380 , 485234 , 533926 , 497155 , 500913 , 502250 , 529267 , 526884 , 469116 , 582220 , 567155 , 572318 , 696233 , 702927 , 624502 , 640888 , 782516 , 790218 , 628095 , 639731 , 440632 , 558572 , 593872 , 643027 , 601699 , 484807 , 522191 , 442363 , 537236 , 662020 , 599803 , 480326 , 529290 , 575698 , 518633 );
Copy
4
2.56 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
440632
442363
469116
480326
484807
485234
493231
497155
500802
500913
502250
518633
522191
526884
529267
529290
530385
533926
535164
535269
535374
537113
537236
550241
558572
562346
567155
571233
572318
575329
575698
580414
582220
593867
593872
595054
595101
595267
599803
600251
601699
621165
621342
622474
624502
626810
628095
630900
637120
638380
639628
639731
640888
643027
659405
662020
696233
696430
702927
754168
766896
782516
790218
791209
794265
799591
803796
]
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 (440632 , 442363 , 469116 , 480326 , 484807 , 485234 , 493231 , 497155 , 500802 , 500913 , 502250 , 518633 , 522191 , 526884 , 529267 , 529290 , 530385 , 533926 , 535164 , 535269 , 535374 , 537113 , 537236 , 550241 , 558572 , 562346 , 567155 , 571233 , 572318 , 575329 , 575698 , 580414 , 582220 , 593867 , 593872 , 595054 , 595101 , 595267 , 599803 , 600251 , 601699 , 621165 , 621342 , 622474 , 624502 , 626810 , 628095 , 630900 , 637120 , 638380 , 639628 , 639731 , 640888 , 643027 , 659405 , 662020 , 696233 , 696430 , 702927 , 754168 , 766896 , 782516 , 790218 , 791209 , 794265 , 799591 , 803796 );
Copy
5
102.89 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
440632
442363
469116
480326
484807
485234
493231
497155
500802
500913
502250
518633
522191
526884
529267
529290
530385
533926
535164
535269
535374
537113
537236
550241
558572
562346
567155
571233
572318
575329
575698
580414
582220
593867
593872
595054
595101
595267
599803
600251
601699
621165
621342
622474
624502
626810
628095
630900
637120
638380
639628
639731
640888
643027
659405
662020
696233
696430
702927
754168
766896
782516
790218
791209
794265
799591
803796
]
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 (440632 , 442363 , 469116 , 480326 , 484807 , 485234 , 493231 , 497155 , 500802 , 500913 , 502250 , 518633 , 522191 , 526884 , 529267 , 529290 , 530385 , 533926 , 535164 , 535269 , 535374 , 537113 , 537236 , 550241 , 558572 , 562346 , 567155 , 571233 , 572318 , 575329 , 575698 , 580414 , 582220 , 593867 , 593872 , 595054 , 595101 , 595267 , 599803 , 600251 , 601699 , 621165 , 621342 , 622474 , 624502 , 626810 , 628095 , 630900 , 637120 , 638380 , 639628 , 639731 , 640888 , 643027 , 659405 , 662020 , 696233 , 696430 , 702927 , 754168 , 766896 , 782516 , 790218 , 791209 , 794265 , 799591 , 803796 );
Copy