3
10.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
828397
772526
636505
680635
398402
719989
428544
537985
825036
767358
748210
601831
736263
742250
397255
808500
425865
536353
810771
748222
401062
401956
815318
591166
611417
807392
725407
731820
748240
495604
816073
825116
495243
557150
554527
563903
621964
748206
748234
748228
395550
534845
465329
497516
518836
489689
563122
746686
748242
748236
398027
435613
599160
563915
732068
492272
510299
601028
492269
519034
634484
807191
489692
534377
489950
591314
]
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 (828397 , 772526 , 636505 , 680635 , 398402 , 719989 , 428544 , 537985 , 825036 , 767358 , 748210 , 601831 , 736263 , 742250 , 397255 , 808500 , 425865 , 536353 , 810771 , 748222 , 401062 , 401956 , 815318 , 591166 , 611417 , 807392 , 725407 , 731820 , 748240 , 495604 , 816073 , 825116 , 495243 , 557150 , 554527 , 563903 , 621964 , 748206 , 748234 , 748228 , 395550 , 534845 , 465329 , 497516 , 518836 , 489689 , 563122 , 746686 , 748242 , 748236 , 398027 , 435613 , 599160 , 563915 , 732068 , 492272 , 510299 , 601028 , 492269 , 519034 , 634484 , 807191 , 489692 , 534377 , 489950 , 591314 );
Copy
4
2.84 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
395550
397255
398027
398402
401062
401956
425865
428544
435613
465329
489689
489692
489950
492269
492272
495243
495604
497516
510299
518836
519034
534377
534845
536353
537985
554527
557150
563122
563903
563915
591166
591314
599160
601028
601831
611417
621964
634484
636505
680635
719989
725407
731820
732068
736263
742250
746686
748206
748210
748222
748228
748234
748236
748240
748242
767358
772526
807191
807392
808500
810771
815318
816073
825036
825116
828397
]
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 (395550 , 397255 , 398027 , 398402 , 401062 , 401956 , 425865 , 428544 , 435613 , 465329 , 489689 , 489692 , 489950 , 492269 , 492272 , 495243 , 495604 , 497516 , 510299 , 518836 , 519034 , 534377 , 534845 , 536353 , 537985 , 554527 , 557150 , 563122 , 563903 , 563915 , 591166 , 591314 , 599160 , 601028 , 601831 , 611417 , 621964 , 634484 , 636505 , 680635 , 719989 , 725407 , 731820 , 732068 , 736263 , 742250 , 746686 , 748206 , 748210 , 748222 , 748228 , 748234 , 748236 , 748240 , 748242 , 767358 , 772526 , 807191 , 807392 , 808500 , 810771 , 815318 , 816073 , 825036 , 825116 , 828397 );
Copy
5
83.52 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
395550
397255
398027
398402
401062
401956
425865
428544
435613
465329
489689
489692
489950
492269
492272
495243
495604
497516
510299
518836
519034
534377
534845
536353
537985
554527
557150
563122
563903
563915
591166
591314
599160
601028
601831
611417
621964
634484
636505
680635
719989
725407
731820
732068
736263
742250
746686
748206
748210
748222
748228
748234
748236
748240
748242
767358
772526
807191
807392
808500
810771
815318
816073
825036
825116
828397
]
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 (395550 , 397255 , 398027 , 398402 , 401062 , 401956 , 425865 , 428544 , 435613 , 465329 , 489689 , 489692 , 489950 , 492269 , 492272 , 495243 , 495604 , 497516 , 510299 , 518836 , 519034 , 534377 , 534845 , 536353 , 537985 , 554527 , 557150 , 563122 , 563903 , 563915 , 591166 , 591314 , 599160 , 601028 , 601831 , 611417 , 621964 , 634484 , 636505 , 680635 , 719989 , 725407 , 731820 , 732068 , 736263 , 742250 , 746686 , 748206 , 748210 , 748222 , 748228 , 748234 , 748236 , 748240 , 748242 , 767358 , 772526 , 807191 , 807392 , 808500 , 810771 , 815318 , 816073 , 825036 , 825116 , 828397 );
Copy