3
11.45 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
507595
442697
480245
517368
813684
811058
799936
813919
586805
582624
392739
395675
55910
392745
395656
395717
396225
397708
392818
452137
392747
408940
395559
395511
395584
437489
385427
813920
408970
398164
395705
395755
395726
528349
395739
543281
395508
408947
392620
395699
392822
395695
623330
488364
393903
395688
453445
392775
568050
499581
418049
392744
395685
394548
429748
450219
512919
486670
486193
458718
557558
409259
517369
477327
517386
553056
605971
565783
]
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 (507595 , 442697 , 480245 , 517368 , 813684 , 811058 , 799936 , 813919 , 586805 , 582624 , 392739 , 395675 , 55910 , 392745 , 395656 , 395717 , 396225 , 397708 , 392818 , 452137 , 392747 , 408940 , 395559 , 395511 , 395584 , 437489 , 385427 , 813920 , 408970 , 398164 , 395705 , 395755 , 395726 , 528349 , 395739 , 543281 , 395508 , 408947 , 392620 , 395699 , 392822 , 395695 , 623330 , 488364 , 393903 , 395688 , 453445 , 392775 , 568050 , 499581 , 418049 , 392744 , 395685 , 394548 , 429748 , 450219 , 512919 , 486670 , 486193 , 458718 , 557558 , 409259 , 517369 , 477327 , 517386 , 553056 , 605971 , 565783 );
Copy
4
2.29 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
55910
385427
392620
392739
392744
392745
392747
392775
392818
392822
393903
394548
395508
395511
395559
395584
395656
395675
395685
395688
395695
395699
395705
395717
395726
395739
395755
396225
397708
398164
408940
408947
408970
409259
418049
429748
437489
442697
450219
452137
453445
458718
477327
480245
486193
486670
488364
499581
507595
512919
517368
517369
517386
528349
543281
553056
557558
565783
568050
582624
586805
605971
623330
799936
811058
813684
813919
813920
]
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 (55910 , 385427 , 392620 , 392739 , 392744 , 392745 , 392747 , 392775 , 392818 , 392822 , 393903 , 394548 , 395508 , 395511 , 395559 , 395584 , 395656 , 395675 , 395685 , 395688 , 395695 , 395699 , 395705 , 395717 , 395726 , 395739 , 395755 , 396225 , 397708 , 398164 , 408940 , 408947 , 408970 , 409259 , 418049 , 429748 , 437489 , 442697 , 450219 , 452137 , 453445 , 458718 , 477327 , 480245 , 486193 , 486670 , 488364 , 499581 , 507595 , 512919 , 517368 , 517369 , 517386 , 528349 , 543281 , 553056 , 557558 , 565783 , 568050 , 582624 , 586805 , 605971 , 623330 , 799936 , 811058 , 813684 , 813919 , 813920 );
Copy
5
102.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
55910
385427
392620
392739
392744
392745
392747
392775
392818
392822
393903
394548
395508
395511
395559
395584
395656
395675
395685
395688
395695
395699
395705
395717
395726
395739
395755
396225
397708
398164
408940
408947
408970
409259
418049
429748
437489
442697
450219
452137
453445
458718
477327
480245
486193
486670
488364
499581
507595
512919
517368
517369
517386
528349
543281
553056
557558
565783
568050
582624
586805
605971
623330
799936
811058
813684
813919
813920
]
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 (55910 , 385427 , 392620 , 392739 , 392744 , 392745 , 392747 , 392775 , 392818 , 392822 , 393903 , 394548 , 395508 , 395511 , 395559 , 395584 , 395656 , 395675 , 395685 , 395688 , 395695 , 395699 , 395705 , 395717 , 395726 , 395739 , 395755 , 396225 , 397708 , 398164 , 408940 , 408947 , 408970 , 409259 , 418049 , 429748 , 437489 , 442697 , 450219 , 452137 , 453445 , 458718 , 477327 , 480245 , 486193 , 486670 , 488364 , 499581 , 507595 , 512919 , 517368 , 517369 , 517386 , 528349 , 543281 , 553056 , 557558 , 565783 , 568050 , 582624 , 586805 , 605971 , 623330 , 799936 , 811058 , 813684 , 813919 , 813920 );
Copy