3
10.38 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
515078
606134
719897
606595
707284
817710
820142
734394
732852
746025
729017
387415
390022
583514
644706
712310
740890
614292
504059
600384
721818
750374
808513
806084
761275
425215
606615
381862
525505
798918
724038
804178
417219
513332
728316
489396
388792
132341
397918
548231
507305
567419
588343
554388
602668
457984
472618
453628
486902
809644
387905
401064
428509
476227
551922
567410
589747
456915
512539
480749
395666
428522
480772
483802
428531
529162
]
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 (515078 , 606134 , 719897 , 606595 , 707284 , 817710 , 820142 , 734394 , 732852 , 746025 , 729017 , 387415 , 390022 , 583514 , 644706 , 712310 , 740890 , 614292 , 504059 , 600384 , 721818 , 750374 , 808513 , 806084 , 761275 , 425215 , 606615 , 381862 , 525505 , 798918 , 724038 , 804178 , 417219 , 513332 , 728316 , 489396 , 388792 , 132341 , 397918 , 548231 , 507305 , 567419 , 588343 , 554388 , 602668 , 457984 , 472618 , 453628 , 486902 , 809644 , 387905 , 401064 , 428509 , 476227 , 551922 , 567410 , 589747 , 456915 , 512539 , 480749 , 395666 , 428522 , 480772 , 483802 , 428531 , 529162 );
Copy
4
2.41 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
132341
381862
387415
387905
388792
390022
395666
397918
401064
417219
425215
428509
428522
428531
453628
456915
457984
472618
476227
480749
480772
483802
486902
489396
504059
507305
512539
513332
515078
525505
529162
548231
551922
554388
567410
567419
583514
588343
589747
600384
602668
606134
606595
606615
614292
644706
707284
712310
719897
721818
724038
728316
729017
732852
734394
740890
746025
750374
761275
798918
804178
806084
808513
809644
817710
820142
]
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 (132341 , 381862 , 387415 , 387905 , 388792 , 390022 , 395666 , 397918 , 401064 , 417219 , 425215 , 428509 , 428522 , 428531 , 453628 , 456915 , 457984 , 472618 , 476227 , 480749 , 480772 , 483802 , 486902 , 489396 , 504059 , 507305 , 512539 , 513332 , 515078 , 525505 , 529162 , 548231 , 551922 , 554388 , 567410 , 567419 , 583514 , 588343 , 589747 , 600384 , 602668 , 606134 , 606595 , 606615 , 614292 , 644706 , 707284 , 712310 , 719897 , 721818 , 724038 , 728316 , 729017 , 732852 , 734394 , 740890 , 746025 , 750374 , 761275 , 798918 , 804178 , 806084 , 808513 , 809644 , 817710 , 820142 );
Copy
5
130.24 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
132341
381862
387415
387905
388792
390022
395666
397918
401064
417219
425215
428509
428522
428531
453628
456915
457984
472618
476227
480749
480772
483802
486902
489396
504059
507305
512539
513332
515078
525505
529162
548231
551922
554388
567410
567419
583514
588343
589747
600384
602668
606134
606595
606615
614292
644706
707284
712310
719897
721818
724038
728316
729017
732852
734394
740890
746025
750374
761275
798918
804178
806084
808513
809644
817710
820142
]
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 (132341 , 381862 , 387415 , 387905 , 388792 , 390022 , 395666 , 397918 , 401064 , 417219 , 425215 , 428509 , 428522 , 428531 , 453628 , 456915 , 457984 , 472618 , 476227 , 480749 , 480772 , 483802 , 486902 , 489396 , 504059 , 507305 , 512539 , 513332 , 515078 , 525505 , 529162 , 548231 , 551922 , 554388 , 567410 , 567419 , 583514 , 588343 , 589747 , 600384 , 602668 , 606134 , 606595 , 606615 , 614292 , 644706 , 707284 , 712310 , 719897 , 721818 , 724038 , 728316 , 729017 , 732852 , 734394 , 740890 , 746025 , 750374 , 761275 , 798918 , 804178 , 806084 , 808513 , 809644 , 817710 , 820142 );
Copy