3
15.80 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
561131
434492
457165
443819
520354
406289
603509
405061
390502
690902
423267
538190
384998
720245
420762
515165
512181
550781
667898
399824
560462
616336
405074
408262
408601
425332
518588
395552
395687
527888
454065
624221
442994
581302
666766
592478
485589
572027
576700
412183
538360
396087
548278
404292
404778
562836
484648
472910
619439
510576
622628
663956
586628
571680
682531
517654
559577
516040
636295
507680
650380
533372
621698
502283
445641
445617
604960
540141
451957
540511
509100
510589
484706
417058
]
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 (561131 , 434492 , 457165 , 443819 , 520354 , 406289 , 603509 , 405061 , 390502 , 690902 , 423267 , 538190 , 384998 , 720245 , 420762 , 515165 , 512181 , 550781 , 667898 , 399824 , 560462 , 616336 , 405074 , 408262 , 408601 , 425332 , 518588 , 395552 , 395687 , 527888 , 454065 , 624221 , 442994 , 581302 , 666766 , 592478 , 485589 , 572027 , 576700 , 412183 , 538360 , 396087 , 548278 , 404292 , 404778 , 562836 , 484648 , 472910 , 619439 , 510576 , 622628 , 663956 , 586628 , 571680 , 682531 , 517654 , 559577 , 516040 , 636295 , 507680 , 650380 , 533372 , 621698 , 502283 , 445641 , 445617 , 604960 , 540141 , 451957 , 540511 , 509100 , 510589 , 484706 , 417058 );
Copy
4
2.78 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
384998
390502
395552
395687
396087
399824
404292
404778
405061
405074
406289
408262
408601
412183
417058
420762
423267
425332
434492
442994
443819
445617
445641
451957
454065
457165
472910
484648
484706
485589
502283
507680
509100
510576
510589
512181
515165
516040
517654
518588
520354
527888
533372
538190
538360
540141
540511
548278
550781
559577
560462
561131
562836
571680
572027
576700
581302
586628
592478
603509
604960
616336
619439
621698
622628
624221
636295
650380
663956
666766
667898
682531
690902
720245
]
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 (384998 , 390502 , 395552 , 395687 , 396087 , 399824 , 404292 , 404778 , 405061 , 405074 , 406289 , 408262 , 408601 , 412183 , 417058 , 420762 , 423267 , 425332 , 434492 , 442994 , 443819 , 445617 , 445641 , 451957 , 454065 , 457165 , 472910 , 484648 , 484706 , 485589 , 502283 , 507680 , 509100 , 510576 , 510589 , 512181 , 515165 , 516040 , 517654 , 518588 , 520354 , 527888 , 533372 , 538190 , 538360 , 540141 , 540511 , 548278 , 550781 , 559577 , 560462 , 561131 , 562836 , 571680 , 572027 , 576700 , 581302 , 586628 , 592478 , 603509 , 604960 , 616336 , 619439 , 621698 , 622628 , 624221 , 636295 , 650380 , 663956 , 666766 , 667898 , 682531 , 690902 , 720245 );
Copy
5
119.80 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
384998
390502
395552
395687
396087
399824
404292
404778
405061
405074
406289
408262
408601
412183
417058
420762
423267
425332
434492
442994
443819
445617
445641
451957
454065
457165
472910
484648
484706
485589
502283
507680
509100
510576
510589
512181
515165
516040
517654
518588
520354
527888
533372
538190
538360
540141
540511
548278
550781
559577
560462
561131
562836
571680
572027
576700
581302
586628
592478
603509
604960
616336
619439
621698
622628
624221
636295
650380
663956
666766
667898
682531
690902
720245
]
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 (384998 , 390502 , 395552 , 395687 , 396087 , 399824 , 404292 , 404778 , 405061 , 405074 , 406289 , 408262 , 408601 , 412183 , 417058 , 420762 , 423267 , 425332 , 434492 , 442994 , 443819 , 445617 , 445641 , 451957 , 454065 , 457165 , 472910 , 484648 , 484706 , 485589 , 502283 , 507680 , 509100 , 510576 , 510589 , 512181 , 515165 , 516040 , 517654 , 518588 , 520354 , 527888 , 533372 , 538190 , 538360 , 540141 , 540511 , 548278 , 550781 , 559577 , 560462 , 561131 , 562836 , 571680 , 572027 , 576700 , 581302 , 586628 , 592478 , 603509 , 604960 , 616336 , 619439 , 621698 , 622628 , 624221 , 636295 , 650380 , 663956 , 666766 , 667898 , 682531 , 690902 , 720245 );
Copy