3
14.21 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
528753
495690
591059
421208
568538
788173
801409
457953
533209
536621
397269
486664
583257
609905
642444
790802
480645
519960
456933
502534
600987
454982
525307
805557
455559
494496
486399
513797
514356
601833
591258
489272
529075
448861
471802
518115
716811
520842
512218
516407
521152
510259
516051
496662
579328
789665
519390
579345
584328
613279
550350
609845
486877
578488
604894
459512
561082
582730
586633
612348
578454
568045
584702
565186
]
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 (528753 , 495690 , 591059 , 421208 , 568538 , 788173 , 801409 , 457953 , 533209 , 536621 , 397269 , 486664 , 583257 , 609905 , 642444 , 790802 , 480645 , 519960 , 456933 , 502534 , 600987 , 454982 , 525307 , 805557 , 455559 , 494496 , 486399 , 513797 , 514356 , 601833 , 591258 , 489272 , 529075 , 448861 , 471802 , 518115 , 716811 , 520842 , 512218 , 516407 , 521152 , 510259 , 516051 , 496662 , 579328 , 789665 , 519390 , 579345 , 584328 , 613279 , 550350 , 609845 , 486877 , 578488 , 604894 , 459512 , 561082 , 582730 , 586633 , 612348 , 578454 , 568045 , 584702 , 565186 );
Copy
4
2.98 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
397269
421208
448861
454982
455559
456933
457953
459512
471802
480645
486399
486664
486877
489272
494496
495690
496662
502534
510259
512218
513797
514356
516051
516407
518115
519390
519960
520842
521152
525307
528753
529075
533209
536621
550350
561082
565186
568045
568538
578454
578488
579328
579345
582730
583257
584328
584702
586633
591059
591258
600987
601833
604894
609845
609905
612348
613279
642444
716811
788173
789665
790802
801409
805557
]
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 (397269 , 421208 , 448861 , 454982 , 455559 , 456933 , 457953 , 459512 , 471802 , 480645 , 486399 , 486664 , 486877 , 489272 , 494496 , 495690 , 496662 , 502534 , 510259 , 512218 , 513797 , 514356 , 516051 , 516407 , 518115 , 519390 , 519960 , 520842 , 521152 , 525307 , 528753 , 529075 , 533209 , 536621 , 550350 , 561082 , 565186 , 568045 , 568538 , 578454 , 578488 , 579328 , 579345 , 582730 , 583257 , 584328 , 584702 , 586633 , 591059 , 591258 , 600987 , 601833 , 604894 , 609845 , 609905 , 612348 , 613279 , 642444 , 716811 , 788173 , 789665 , 790802 , 801409 , 805557 );
Copy
5
79.75 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
397269
421208
448861
454982
455559
456933
457953
459512
471802
480645
486399
486664
486877
489272
494496
495690
496662
502534
510259
512218
513797
514356
516051
516407
518115
519390
519960
520842
521152
525307
528753
529075
533209
536621
550350
561082
565186
568045
568538
578454
578488
579328
579345
582730
583257
584328
584702
586633
591059
591258
600987
601833
604894
609845
609905
612348
613279
642444
716811
788173
789665
790802
801409
805557
]
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 (397269 , 421208 , 448861 , 454982 , 455559 , 456933 , 457953 , 459512 , 471802 , 480645 , 486399 , 486664 , 486877 , 489272 , 494496 , 495690 , 496662 , 502534 , 510259 , 512218 , 513797 , 514356 , 516051 , 516407 , 518115 , 519390 , 519960 , 520842 , 521152 , 525307 , 528753 , 529075 , 533209 , 536621 , 550350 , 561082 , 565186 , 568045 , 568538 , 578454 , 578488 , 579328 , 579345 , 582730 , 583257 , 584328 , 584702 , 586633 , 591059 , 591258 , 600987 , 601833 , 604894 , 609845 , 609905 , 612348 , 613279 , 642444 , 716811 , 788173 , 789665 , 790802 , 801409 , 805557 );
Copy