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