3
219.46 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
742360
547854
593274
537861
720139
547847
482773
424770
564222
473387
723494
406816
656599
590809
391470
48395
459370
599518
706232
734469
542146
464368
603240
482775
534537
745672
728555
470412
397437
767057
434275
96021
782321
752651
720145
801311
583713
618908
794307
691808
728229
352142
501382
442673
467952
562342
484681
636958
547556
443249
471035
482776
518766
825001
482768
426544
572339
789878
466268
464366
476797
476409
588929
615818
497837
]
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 (742360 , 547854 , 593274 , 537861 , 720139 , 547847 , 482773 , 424770 , 564222 , 473387 , 723494 , 406816 , 656599 , 590809 , 391470 , 48395 , 459370 , 599518 , 706232 , 734469 , 542146 , 464368 , 603240 , 482775 , 534537 , 745672 , 728555 , 470412 , 397437 , 767057 , 434275 , 96021 , 782321 , 752651 , 720145 , 801311 , 583713 , 618908 , 794307 , 691808 , 728229 , 352142 , 501382 , 442673 , 467952 , 562342 , 484681 , 636958 , 547556 , 443249 , 471035 , 482776 , 518766 , 825001 , 482768 , 426544 , 572339 , 789878 , 466268 , 464366 , 476797 , 476409 , 588929 , 615818 , 497837 );
Copy
4
2.31 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
48395
96021
352142
391470
397437
406816
424770
426544
434275
442673
443249
459370
464366
464368
466268
467952
470412
471035
473387
476409
476797
482768
482773
482775
482776
484681
497837
501382
518766
534537
537861
542146
547556
547847
547854
562342
564222
572339
583713
588929
590809
593274
599518
603240
615818
618908
636958
656599
691808
706232
720139
720145
723494
728229
728555
734469
742360
745672
752651
767057
782321
789878
794307
801311
825001
]
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 (48395 , 96021 , 352142 , 391470 , 397437 , 406816 , 424770 , 426544 , 434275 , 442673 , 443249 , 459370 , 464366 , 464368 , 466268 , 467952 , 470412 , 471035 , 473387 , 476409 , 476797 , 482768 , 482773 , 482775 , 482776 , 484681 , 497837 , 501382 , 518766 , 534537 , 537861 , 542146 , 547556 , 547847 , 547854 , 562342 , 564222 , 572339 , 583713 , 588929 , 590809 , 593274 , 599518 , 603240 , 615818 , 618908 , 636958 , 656599 , 691808 , 706232 , 720139 , 720145 , 723494 , 728229 , 728555 , 734469 , 742360 , 745672 , 752651 , 767057 , 782321 , 789878 , 794307 , 801311 , 825001 );
Copy
5
1747.48 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
48395
96021
352142
391470
397437
406816
424770
426544
434275
442673
443249
459370
464366
464368
466268
467952
470412
471035
473387
476409
476797
482768
482773
482775
482776
484681
497837
501382
518766
534537
537861
542146
547556
547847
547854
562342
564222
572339
583713
588929
590809
593274
599518
603240
615818
618908
636958
656599
691808
706232
720139
720145
723494
728229
728555
734469
742360
745672
752651
767057
782321
789878
794307
801311
825001
]
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 (48395 , 96021 , 352142 , 391470 , 397437 , 406816 , 424770 , 426544 , 434275 , 442673 , 443249 , 459370 , 464366 , 464368 , 466268 , 467952 , 470412 , 471035 , 473387 , 476409 , 476797 , 482768 , 482773 , 482775 , 482776 , 484681 , 497837 , 501382 , 518766 , 534537 , 537861 , 542146 , 547556 , 547847 , 547854 , 562342 , 564222 , 572339 , 583713 , 588929 , 590809 , 593274 , 599518 , 603240 , 615818 , 618908 , 636958 , 656599 , 691808 , 706232 , 720139 , 720145 , 723494 , 728229 , 728555 , 734469 , 742360 , 745672 , 752651 , 767057 , 782321 , 789878 , 794307 , 801311 , 825001 );
Copy