3
7.58 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
424618
181420
482262
313189
743276
390593
408845
671628
197516
474554
805694
358200
389770
667631
733416
757337
487880
510950
428113
466969
451537
439236
625597
502891
491440
467030
553475
810191
733538
596235
432568
552308
625578
700179
444545
422732
438762
447315
435321
544476
457599
469497
476454
496756
454523
604018
470034
465585
460758
455058
563066
491328
456216
490982
453161
557981
494842
437807
458718
488382
478647
585007
483627
556987
]
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 (424618 , 181420 , 482262 , 313189 , 743276 , 390593 , 408845 , 671628 , 197516 , 474554 , 805694 , 358200 , 389770 , 667631 , 733416 , 757337 , 487880 , 510950 , 428113 , 466969 , 451537 , 439236 , 625597 , 502891 , 491440 , 467030 , 553475 , 810191 , 733538 , 596235 , 432568 , 552308 , 625578 , 700179 , 444545 , 422732 , 438762 , 447315 , 435321 , 544476 , 457599 , 469497 , 476454 , 496756 , 454523 , 604018 , 470034 , 465585 , 460758 , 455058 , 563066 , 491328 , 456216 , 490982 , 453161 , 557981 , 494842 , 437807 , 458718 , 488382 , 478647 , 585007 , 483627 , 556987 );
Copy
4
2.40 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
181420
197516
313189
358200
389770
390593
408845
422732
424618
428113
432568
435321
437807
438762
439236
444545
447315
451537
453161
454523
455058
456216
457599
458718
460758
465585
466969
467030
469497
470034
474554
476454
478647
482262
483627
487880
488382
490982
491328
491440
494842
496756
502891
510950
544476
552308
553475
556987
557981
563066
585007
596235
604018
625578
625597
667631
671628
700179
733416
733538
743276
757337
805694
810191
]
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 (181420 , 197516 , 313189 , 358200 , 389770 , 390593 , 408845 , 422732 , 424618 , 428113 , 432568 , 435321 , 437807 , 438762 , 439236 , 444545 , 447315 , 451537 , 453161 , 454523 , 455058 , 456216 , 457599 , 458718 , 460758 , 465585 , 466969 , 467030 , 469497 , 470034 , 474554 , 476454 , 478647 , 482262 , 483627 , 487880 , 488382 , 490982 , 491328 , 491440 , 494842 , 496756 , 502891 , 510950 , 544476 , 552308 , 553475 , 556987 , 557981 , 563066 , 585007 , 596235 , 604018 , 625578 , 625597 , 667631 , 671628 , 700179 , 733416 , 733538 , 743276 , 757337 , 805694 , 810191 );
Copy
5
72.77 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
181420
197516
313189
358200
389770
390593
408845
422732
424618
428113
432568
435321
437807
438762
439236
444545
447315
451537
453161
454523
455058
456216
457599
458718
460758
465585
466969
467030
469497
470034
474554
476454
478647
482262
483627
487880
488382
490982
491328
491440
494842
496756
502891
510950
544476
552308
553475
556987
557981
563066
585007
596235
604018
625578
625597
667631
671628
700179
733416
733538
743276
757337
805694
810191
]
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 (181420 , 197516 , 313189 , 358200 , 389770 , 390593 , 408845 , 422732 , 424618 , 428113 , 432568 , 435321 , 437807 , 438762 , 439236 , 444545 , 447315 , 451537 , 453161 , 454523 , 455058 , 456216 , 457599 , 458718 , 460758 , 465585 , 466969 , 467030 , 469497 , 470034 , 474554 , 476454 , 478647 , 482262 , 483627 , 487880 , 488382 , 490982 , 491328 , 491440 , 494842 , 496756 , 502891 , 510950 , 544476 , 552308 , 553475 , 556987 , 557981 , 563066 , 585007 , 596235 , 604018 , 625578 , 625597 , 667631 , 671628 , 700179 , 733416 , 733538 , 743276 , 757337 , 805694 , 810191 );
Copy