3
13.51 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
454857
22861
408558
447928
405786
792763
398654
644912
552002
396782
432317
459263
435645
578385
422629
423242
706946
761566
408539
429025
512192
422949
422844
452444
422648
417960
428458
383742
405894
443322
389863
422619
473539
425027
452513
448564
502301
576033
422595
517857
11718
409909
492907
422515
422688
623820
520540
434553
806804
396094
443990
449435
790957
435066
590859
621410
554004
580270
435443
469200
517856
472488
598865
545610
680189
452034
515968
499791
395824
545600
421201
386035
553280
612698
]
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 (454857 , 22861 , 408558 , 447928 , 405786 , 792763 , 398654 , 644912 , 552002 , 396782 , 432317 , 459263 , 435645 , 578385 , 422629 , 423242 , 706946 , 761566 , 408539 , 429025 , 512192 , 422949 , 422844 , 452444 , 422648 , 417960 , 428458 , 383742 , 405894 , 443322 , 389863 , 422619 , 473539 , 425027 , 452513 , 448564 , 502301 , 576033 , 422595 , 517857 , 11718 , 409909 , 492907 , 422515 , 422688 , 623820 , 520540 , 434553 , 806804 , 396094 , 443990 , 449435 , 790957 , 435066 , 590859 , 621410 , 554004 , 580270 , 435443 , 469200 , 517856 , 472488 , 598865 , 545610 , 680189 , 452034 , 515968 , 499791 , 395824 , 545600 , 421201 , 386035 , 553280 , 612698 );
Copy
4
2.37 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
11718
22861
383742
386035
389863
395824
396094
396782
398654
405786
405894
408539
408558
409909
417960
421201
422515
422595
422619
422629
422648
422688
422844
422949
423242
425027
428458
429025
432317
434553
435066
435443
435645
443322
443990
447928
448564
449435
452034
452444
452513
454857
459263
469200
472488
473539
492907
499791
502301
512192
515968
517856
517857
520540
545600
545610
552002
553280
554004
576033
578385
580270
590859
598865
612698
621410
623820
644912
680189
706946
761566
790957
792763
806804
]
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 (11718 , 22861 , 383742 , 386035 , 389863 , 395824 , 396094 , 396782 , 398654 , 405786 , 405894 , 408539 , 408558 , 409909 , 417960 , 421201 , 422515 , 422595 , 422619 , 422629 , 422648 , 422688 , 422844 , 422949 , 423242 , 425027 , 428458 , 429025 , 432317 , 434553 , 435066 , 435443 , 435645 , 443322 , 443990 , 447928 , 448564 , 449435 , 452034 , 452444 , 452513 , 454857 , 459263 , 469200 , 472488 , 473539 , 492907 , 499791 , 502301 , 512192 , 515968 , 517856 , 517857 , 520540 , 545600 , 545610 , 552002 , 553280 , 554004 , 576033 , 578385 , 580270 , 590859 , 598865 , 612698 , 621410 , 623820 , 644912 , 680189 , 706946 , 761566 , 790957 , 792763 , 806804 );
Copy
5
110.99 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
11718
22861
383742
386035
389863
395824
396094
396782
398654
405786
405894
408539
408558
409909
417960
421201
422515
422595
422619
422629
422648
422688
422844
422949
423242
425027
428458
429025
432317
434553
435066
435443
435645
443322
443990
447928
448564
449435
452034
452444
452513
454857
459263
469200
472488
473539
492907
499791
502301
512192
515968
517856
517857
520540
545600
545610
552002
553280
554004
576033
578385
580270
590859
598865
612698
621410
623820
644912
680189
706946
761566
790957
792763
806804
]
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 (11718 , 22861 , 383742 , 386035 , 389863 , 395824 , 396094 , 396782 , 398654 , 405786 , 405894 , 408539 , 408558 , 409909 , 417960 , 421201 , 422515 , 422595 , 422619 , 422629 , 422648 , 422688 , 422844 , 422949 , 423242 , 425027 , 428458 , 429025 , 432317 , 434553 , 435066 , 435443 , 435645 , 443322 , 443990 , 447928 , 448564 , 449435 , 452034 , 452444 , 452513 , 454857 , 459263 , 469200 , 472488 , 473539 , 492907 , 499791 , 502301 , 512192 , 515968 , 517856 , 517857 , 520540 , 545600 , 545610 , 552002 , 553280 , 554004 , 576033 , 578385 , 580270 , 590859 , 598865 , 612698 , 621410 , 623820 , 644912 , 680189 , 706946 , 761566 , 790957 , 792763 , 806804 );
Copy