4
12.60 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
482301
509336
511264
522324
539753
510217
527296
509338
556990
558473
560853
570958
546855
645096
548485
580715
616201
620083
642879
446268
529483
492538
496117
520012
484161
447804
519605
534285
569060
549660
560879
613007
587397
468189
418290
422394
460277
455312
472991
504739
513943
459141
473915
454076
486283
559696
549693
561863
567316
808579
448363
477170
510520
522108
534385
516316
514647
531439
601949
425164
511678
531204
602574
601935
599534
621465
624340
623471
464385
463957
]
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 (482301 , 509336 , 511264 , 522324 , 539753 , 510217 , 527296 , 509338 , 556990 , 558473 , 560853 , 570958 , 546855 , 645096 , 548485 , 580715 , 616201 , 620083 , 642879 , 446268 , 529483 , 492538 , 496117 , 520012 , 484161 , 447804 , 519605 , 534285 , 569060 , 549660 , 560879 , 613007 , 587397 , 468189 , 418290 , 422394 , 460277 , 455312 , 472991 , 504739 , 513943 , 459141 , 473915 , 454076 , 486283 , 559696 , 549693 , 561863 , 567316 , 808579 , 448363 , 477170 , 510520 , 522108 , 534385 , 516316 , 514647 , 531439 , 601949 , 425164 , 511678 , 531204 , 602574 , 601935 , 599534 , 621465 , 624340 , 623471 , 464385 , 463957 );
Copy
5
2.97 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
418290
422394
425164
446268
447804
448363
454076
455312
459141
460277
463957
464385
468189
472991
473915
477170
482301
484161
486283
492538
496117
504739
509336
509338
510217
510520
511264
511678
513943
514647
516316
519605
520012
522108
522324
527296
529483
531204
531439
534285
534385
539753
546855
548485
549660
549693
556990
558473
559696
560853
560879
561863
567316
569060
570958
580715
587397
599534
601935
601949
602574
613007
616201
620083
621465
623471
624340
642879
645096
808579
]
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 (418290 , 422394 , 425164 , 446268 , 447804 , 448363 , 454076 , 455312 , 459141 , 460277 , 463957 , 464385 , 468189 , 472991 , 473915 , 477170 , 482301 , 484161 , 486283 , 492538 , 496117 , 504739 , 509336 , 509338 , 510217 , 510520 , 511264 , 511678 , 513943 , 514647 , 516316 , 519605 , 520012 , 522108 , 522324 , 527296 , 529483 , 531204 , 531439 , 534285 , 534385 , 539753 , 546855 , 548485 , 549660 , 549693 , 556990 , 558473 , 559696 , 560853 , 560879 , 561863 , 567316 , 569060 , 570958 , 580715 , 587397 , 599534 , 601935 , 601949 , 602574 , 613007 , 616201 , 620083 , 621465 , 623471 , 624340 , 642879 , 645096 , 808579 );
Copy
6
77.92 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
418290
422394
425164
446268
447804
448363
454076
455312
459141
460277
463957
464385
468189
472991
473915
477170
482301
484161
486283
492538
496117
504739
509336
509338
510217
510520
511264
511678
513943
514647
516316
519605
520012
522108
522324
527296
529483
531204
531439
534285
534385
539753
546855
548485
549660
549693
556990
558473
559696
560853
560879
561863
567316
569060
570958
580715
587397
599534
601935
601949
602574
613007
616201
620083
621465
623471
624340
642879
645096
808579
]
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 (418290 , 422394 , 425164 , 446268 , 447804 , 448363 , 454076 , 455312 , 459141 , 460277 , 463957 , 464385 , 468189 , 472991 , 473915 , 477170 , 482301 , 484161 , 486283 , 492538 , 496117 , 504739 , 509336 , 509338 , 510217 , 510520 , 511264 , 511678 , 513943 , 514647 , 516316 , 519605 , 520012 , 522108 , 522324 , 527296 , 529483 , 531204 , 531439 , 534285 , 534385 , 539753 , 546855 , 548485 , 549660 , 549693 , 556990 , 558473 , 559696 , 560853 , 560879 , 561863 , 567316 , 569060 , 570958 , 580715 , 587397 , 599534 , 601935 , 601949 , 602574 , 613007 , 616201 , 620083 , 621465 , 623471 , 624340 , 642879 , 645096 , 808579 );
Copy