3
10.96 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
799318
679385
657057
679380
779775
764079
803336
568687
538224
599476
385248
607279
426180
614840
398715
431496
797760
528754
570003
786715
782849
634897
383325
619870
599394
631573
520370
718054
589624
726446
403614
783206
445138
553410
571565
564472
552476
512296
633607
596954
416314
569134
716660
466174
681782
492721
556310
603783
578333
800556
621336
505775
430297
559238
687551
621270
561929
499657
679350
810902
515858
521033
460590
611556
574322
603696
652981
530999
683083
647307
626942
587921
570866
608560
621520
]
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 (799318 , 679385 , 657057 , 679380 , 779775 , 764079 , 803336 , 568687 , 538224 , 599476 , 385248 , 607279 , 426180 , 614840 , 398715 , 431496 , 797760 , 528754 , 570003 , 786715 , 782849 , 634897 , 383325 , 619870 , 599394 , 631573 , 520370 , 718054 , 589624 , 726446 , 403614 , 783206 , 445138 , 553410 , 571565 , 564472 , 552476 , 512296 , 633607 , 596954 , 416314 , 569134 , 716660 , 466174 , 681782 , 492721 , 556310 , 603783 , 578333 , 800556 , 621336 , 505775 , 430297 , 559238 , 687551 , 621270 , 561929 , 499657 , 679350 , 810902 , 515858 , 521033 , 460590 , 611556 , 574322 , 603696 , 652981 , 530999 , 683083 , 647307 , 626942 , 587921 , 570866 , 608560 , 621520 );
Copy
4
2.06 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
383325
385248
398715
403614
416314
426180
430297
431496
445138
460590
466174
492721
499657
505775
512296
515858
520370
521033
528754
530999
538224
552476
553410
556310
559238
561929
564472
568687
569134
570003
570866
571565
574322
578333
587921
589624
596954
599394
599476
603696
603783
607279
608560
611556
614840
619870
621270
621336
621520
626942
631573
633607
634897
647307
652981
657057
679350
679380
679385
681782
683083
687551
716660
718054
726446
764079
779775
783206
786715
797760
799318
800556
803336
810902
]
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 (383325 , 385248 , 398715 , 403614 , 416314 , 426180 , 430297 , 431496 , 445138 , 460590 , 466174 , 492721 , 499657 , 505775 , 512296 , 515858 , 520370 , 521033 , 528754 , 530999 , 538224 , 552476 , 553410 , 556310 , 559238 , 561929 , 564472 , 568687 , 569134 , 570003 , 570866 , 571565 , 574322 , 578333 , 587921 , 589624 , 596954 , 599394 , 599476 , 603696 , 603783 , 607279 , 608560 , 611556 , 614840 , 619870 , 621270 , 621336 , 621520 , 626942 , 631573 , 633607 , 634897 , 647307 , 652981 , 657057 , 679350 , 679380 , 679385 , 681782 , 683083 , 687551 , 716660 , 718054 , 726446 , 764079 , 779775 , 783206 , 786715 , 797760 , 799318 , 800556 , 803336 , 810902 );
Copy
5
99.22 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
383325
385248
398715
403614
416314
426180
430297
431496
445138
460590
466174
492721
499657
505775
512296
515858
520370
521033
528754
530999
538224
552476
553410
556310
559238
561929
564472
568687
569134
570003
570866
571565
574322
578333
587921
589624
596954
599394
599476
603696
603783
607279
608560
611556
614840
619870
621270
621336
621520
626942
631573
633607
634897
647307
652981
657057
679350
679380
679385
681782
683083
687551
716660
718054
726446
764079
779775
783206
786715
797760
799318
800556
803336
810902
]
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 (383325 , 385248 , 398715 , 403614 , 416314 , 426180 , 430297 , 431496 , 445138 , 460590 , 466174 , 492721 , 499657 , 505775 , 512296 , 515858 , 520370 , 521033 , 528754 , 530999 , 538224 , 552476 , 553410 , 556310 , 559238 , 561929 , 564472 , 568687 , 569134 , 570003 , 570866 , 571565 , 574322 , 578333 , 587921 , 589624 , 596954 , 599394 , 599476 , 603696 , 603783 , 607279 , 608560 , 611556 , 614840 , 619870 , 621270 , 621336 , 621520 , 626942 , 631573 , 633607 , 634897 , 647307 , 652981 , 657057 , 679350 , 679380 , 679385 , 681782 , 683083 , 687551 , 716660 , 718054 , 726446 , 764079 , 779775 , 783206 , 786715 , 797760 , 799318 , 800556 , 803336 , 810902 );
Copy