3
13.05 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
641513
459434
525578
403896
489875
444231
444629
482830
807011
400023
489669
819511
453041
459026
719322
554408
472009
409383
463015
485385
490400
415992
452781
814253
448580
592108
517897
471598
449470
490319
444632
522532
625673
436689
504742
514230
556882
559784
585454
732003
512934
572783
428185
497030
553282
414137
524342
518638
468232
508891
627147
457948
586002
456726
432970
454395
473637
517361
552123
435959
489868
604097
444337
636247
504098
504165
602716
]
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 (641513 , 459434 , 525578 , 403896 , 489875 , 444231 , 444629 , 482830 , 807011 , 400023 , 489669 , 819511 , 453041 , 459026 , 719322 , 554408 , 472009 , 409383 , 463015 , 485385 , 490400 , 415992 , 452781 , 814253 , 448580 , 592108 , 517897 , 471598 , 449470 , 490319 , 444632 , 522532 , 625673 , 436689 , 504742 , 514230 , 556882 , 559784 , 585454 , 732003 , 512934 , 572783 , 428185 , 497030 , 553282 , 414137 , 524342 , 518638 , 468232 , 508891 , 627147 , 457948 , 586002 , 456726 , 432970 , 454395 , 473637 , 517361 , 552123 , 435959 , 489868 , 604097 , 444337 , 636247 , 504098 , 504165 , 602716 );
Copy
4
212.46 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
400023
403896
409383
414137
415992
428185
432970
435959
436689
444231
444337
444629
444632
448580
449470
452781
453041
454395
456726
457948
459026
459434
463015
468232
471598
472009
473637
482830
485385
489669
489868
489875
490319
490400
497030
504098
504165
504742
508891
512934
514230
517361
517897
518638
522532
524342
525578
552123
553282
554408
556882
559784
572783
585454
586002
592108
602716
604097
625673
627147
636247
641513
719322
732003
807011
814253
819511
]
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 (400023 , 403896 , 409383 , 414137 , 415992 , 428185 , 432970 , 435959 , 436689 , 444231 , 444337 , 444629 , 444632 , 448580 , 449470 , 452781 , 453041 , 454395 , 456726 , 457948 , 459026 , 459434 , 463015 , 468232 , 471598 , 472009 , 473637 , 482830 , 485385 , 489669 , 489868 , 489875 , 490319 , 490400 , 497030 , 504098 , 504165 , 504742 , 508891 , 512934 , 514230 , 517361 , 517897 , 518638 , 522532 , 524342 , 525578 , 552123 , 553282 , 554408 , 556882 , 559784 , 572783 , 585454 , 586002 , 592108 , 602716 , 604097 , 625673 , 627147 , 636247 , 641513 , 719322 , 732003 , 807011 , 814253 , 819511 );
Copy
5
80.12 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
400023
403896
409383
414137
415992
428185
432970
435959
436689
444231
444337
444629
444632
448580
449470
452781
453041
454395
456726
457948
459026
459434
463015
468232
471598
472009
473637
482830
485385
489669
489868
489875
490319
490400
497030
504098
504165
504742
508891
512934
514230
517361
517897
518638
522532
524342
525578
552123
553282
554408
556882
559784
572783
585454
586002
592108
602716
604097
625673
627147
636247
641513
719322
732003
807011
814253
819511
]
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 (400023 , 403896 , 409383 , 414137 , 415992 , 428185 , 432970 , 435959 , 436689 , 444231 , 444337 , 444629 , 444632 , 448580 , 449470 , 452781 , 453041 , 454395 , 456726 , 457948 , 459026 , 459434 , 463015 , 468232 , 471598 , 472009 , 473637 , 482830 , 485385 , 489669 , 489868 , 489875 , 490319 , 490400 , 497030 , 504098 , 504165 , 504742 , 508891 , 512934 , 514230 , 517361 , 517897 , 518638 , 522532 , 524342 , 525578 , 552123 , 553282 , 554408 , 556882 , 559784 , 572783 , 585454 , 586002 , 592108 , 602716 , 604097 , 625673 , 627147 , 636247 , 641513 , 719322 , 732003 , 807011 , 814253 , 819511 );
Copy