3
12.55 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
599056
623402
522923
395522
563038
565678
616521
390320
412554
517915
550762
645971
2291
430822
451477
465860
452229
525661
779567
714082
631908
450645
479779
722846
475870
554434
804619
528198
526637
474151
490931
562898
428356
400994
502587
218026
414204
551262
440996
490885
514706
596405
478719
511538
437123
423332
474089
572466
494786
388449
429461
500245
603724
596431
646001
531061
451171
450872
599631
646214
573394
534968
601381
439925
549579
454215
599600
606004
623421
662396
]
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 (599056 , 623402 , 522923 , 395522 , 563038 , 565678 , 616521 , 390320 , 412554 , 517915 , 550762 , 645971 , 2291 , 430822 , 451477 , 465860 , 452229 , 525661 , 779567 , 714082 , 631908 , 450645 , 479779 , 722846 , 475870 , 554434 , 804619 , 528198 , 526637 , 474151 , 490931 , 562898 , 428356 , 400994 , 502587 , 218026 , 414204 , 551262 , 440996 , 490885 , 514706 , 596405 , 478719 , 511538 , 437123 , 423332 , 474089 , 572466 , 494786 , 388449 , 429461 , 500245 , 603724 , 596431 , 646001 , 531061 , 451171 , 450872 , 599631 , 646214 , 573394 , 534968 , 601381 , 439925 , 549579 , 454215 , 599600 , 606004 , 623421 , 662396 );
Copy
4
2.89 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
2291
218026
388449
390320
395522
400994
412554
414204
423332
428356
429461
430822
437123
439925
440996
450645
450872
451171
451477
452229
454215
465860
474089
474151
475870
478719
479779
490885
490931
494786
500245
502587
511538
514706
517915
522923
525661
526637
528198
531061
534968
549579
550762
551262
554434
562898
563038
565678
572466
573394
596405
596431
599056
599600
599631
601381
603724
606004
616521
623402
623421
631908
645971
646001
646214
662396
714082
722846
779567
804619
]
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 (2291 , 218026 , 388449 , 390320 , 395522 , 400994 , 412554 , 414204 , 423332 , 428356 , 429461 , 430822 , 437123 , 439925 , 440996 , 450645 , 450872 , 451171 , 451477 , 452229 , 454215 , 465860 , 474089 , 474151 , 475870 , 478719 , 479779 , 490885 , 490931 , 494786 , 500245 , 502587 , 511538 , 514706 , 517915 , 522923 , 525661 , 526637 , 528198 , 531061 , 534968 , 549579 , 550762 , 551262 , 554434 , 562898 , 563038 , 565678 , 572466 , 573394 , 596405 , 596431 , 599056 , 599600 , 599631 , 601381 , 603724 , 606004 , 616521 , 623402 , 623421 , 631908 , 645971 , 646001 , 646214 , 662396 , 714082 , 722846 , 779567 , 804619 );
Copy
5
76.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
2291
218026
388449
390320
395522
400994
412554
414204
423332
428356
429461
430822
437123
439925
440996
450645
450872
451171
451477
452229
454215
465860
474089
474151
475870
478719
479779
490885
490931
494786
500245
502587
511538
514706
517915
522923
525661
526637
528198
531061
534968
549579
550762
551262
554434
562898
563038
565678
572466
573394
596405
596431
599056
599600
599631
601381
603724
606004
616521
623402
623421
631908
645971
646001
646214
662396
714082
722846
779567
804619
]
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 (2291 , 218026 , 388449 , 390320 , 395522 , 400994 , 412554 , 414204 , 423332 , 428356 , 429461 , 430822 , 437123 , 439925 , 440996 , 450645 , 450872 , 451171 , 451477 , 452229 , 454215 , 465860 , 474089 , 474151 , 475870 , 478719 , 479779 , 490885 , 490931 , 494786 , 500245 , 502587 , 511538 , 514706 , 517915 , 522923 , 525661 , 526637 , 528198 , 531061 , 534968 , 549579 , 550762 , 551262 , 554434 , 562898 , 563038 , 565678 , 572466 , 573394 , 596405 , 596431 , 599056 , 599600 , 599631 , 601381 , 603724 , 606004 , 616521 , 623402 , 623421 , 631908 , 645971 , 646001 , 646214 , 662396 , 714082 , 722846 , 779567 , 804619 );
Copy