4
10.56 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
382813
742360
752651
570355
593274
536551
794303
410217
432683
412149
547854
542146
536465
399083
537861
536423
432680
794307
564222
482775
397443
482773
547847
386226
800289
796315
735543
352142
618280
470412
382141
401857
424648
459370
752649
467952
648716
639722
534537
791405
482776
547556
397437
801311
445416
159370
583713
403434
430311
633147
443249
434045
636958
813579
470430
532748
546083
518766
467195
482768
609154
613839
443099
450518
478051
678532
582540
590908
443323
448840
456518
677784
523924
508150
455898
]
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 (382813 , 742360 , 752651 , 570355 , 593274 , 536551 , 794303 , 410217 , 432683 , 412149 , 547854 , 542146 , 536465 , 399083 , 537861 , 536423 , 432680 , 794307 , 564222 , 482775 , 397443 , 482773 , 547847 , 386226 , 800289 , 796315 , 735543 , 352142 , 618280 , 470412 , 382141 , 401857 , 424648 , 459370 , 752649 , 467952 , 648716 , 639722 , 534537 , 791405 , 482776 , 547556 , 397437 , 801311 , 445416 , 159370 , 583713 , 403434 , 430311 , 633147 , 443249 , 434045 , 636958 , 813579 , 470430 , 532748 , 546083 , 518766 , 467195 , 482768 , 609154 , 613839 , 443099 , 450518 , 478051 , 678532 , 582540 , 590908 , 443323 , 448840 , 456518 , 677784 , 523924 , 508150 , 455898 );
Copy
5
2.75 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
159370
352142
382141
382813
386226
397437
397443
399083
401857
403434
410217
412149
424648
430311
432680
432683
434045
443099
443249
443323
445416
448840
450518
455898
456518
459370
467195
467952
470412
470430
478051
482768
482773
482775
482776
508150
518766
523924
532748
534537
536423
536465
536551
537861
542146
546083
547556
547847
547854
564222
570355
582540
583713
590908
593274
609154
613839
618280
633147
636958
639722
648716
677784
678532
735543
742360
752649
752651
791405
794303
794307
796315
800289
801311
813579
]
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 (159370 , 352142 , 382141 , 382813 , 386226 , 397437 , 397443 , 399083 , 401857 , 403434 , 410217 , 412149 , 424648 , 430311 , 432680 , 432683 , 434045 , 443099 , 443249 , 443323 , 445416 , 448840 , 450518 , 455898 , 456518 , 459370 , 467195 , 467952 , 470412 , 470430 , 478051 , 482768 , 482773 , 482775 , 482776 , 508150 , 518766 , 523924 , 532748 , 534537 , 536423 , 536465 , 536551 , 537861 , 542146 , 546083 , 547556 , 547847 , 547854 , 564222 , 570355 , 582540 , 583713 , 590908 , 593274 , 609154 , 613839 , 618280 , 633147 , 636958 , 639722 , 648716 , 677784 , 678532 , 735543 , 742360 , 752649 , 752651 , 791405 , 794303 , 794307 , 796315 , 800289 , 801311 , 813579 );
Copy
6
106.95 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
159370
352142
382141
382813
386226
397437
397443
399083
401857
403434
410217
412149
424648
430311
432680
432683
434045
443099
443249
443323
445416
448840
450518
455898
456518
459370
467195
467952
470412
470430
478051
482768
482773
482775
482776
508150
518766
523924
532748
534537
536423
536465
536551
537861
542146
546083
547556
547847
547854
564222
570355
582540
583713
590908
593274
609154
613839
618280
633147
636958
639722
648716
677784
678532
735543
742360
752649
752651
791405
794303
794307
796315
800289
801311
813579
]
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 (159370 , 352142 , 382141 , 382813 , 386226 , 397437 , 397443 , 399083 , 401857 , 403434 , 410217 , 412149 , 424648 , 430311 , 432680 , 432683 , 434045 , 443099 , 443249 , 443323 , 445416 , 448840 , 450518 , 455898 , 456518 , 459370 , 467195 , 467952 , 470412 , 470430 , 478051 , 482768 , 482773 , 482775 , 482776 , 508150 , 518766 , 523924 , 532748 , 534537 , 536423 , 536465 , 536551 , 537861 , 542146 , 546083 , 547556 , 547847 , 547854 , 564222 , 570355 , 582540 , 583713 , 590908 , 593274 , 609154 , 613839 , 618280 , 633147 , 636958 , 639722 , 648716 , 677784 , 678532 , 735543 , 742360 , 752649 , 752651 , 791405 , 794303 , 794307 , 796315 , 800289 , 801311 , 813579 );
Copy