3
7.94 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
666869
551114
675607
694134
656619
625240
624419
521249
739910
792721
223551
692818
566657
782671
628441
709505
664476
545747
742015
793434
508777
633447
487206
623797
661917
508754
597666
489241
724114
540164
519922
635210
422546
762979
495014
572705
823753
693367
605154
477581
825818
756871
560982
734626
794754
809784
639798
748071
767023
813272
814263
790499
519925
528052
435356
434201
454354
483513
616472
422351
582229
431975
582248
458608
623933
531187
]
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 (666869 , 551114 , 675607 , 694134 , 656619 , 625240 , 624419 , 521249 , 739910 , 792721 , 223551 , 692818 , 566657 , 782671 , 628441 , 709505 , 664476 , 545747 , 742015 , 793434 , 508777 , 633447 , 487206 , 623797 , 661917 , 508754 , 597666 , 489241 , 724114 , 540164 , 519922 , 635210 , 422546 , 762979 , 495014 , 572705 , 823753 , 693367 , 605154 , 477581 , 825818 , 756871 , 560982 , 734626 , 794754 , 809784 , 639798 , 748071 , 767023 , 813272 , 814263 , 790499 , 519925 , 528052 , 435356 , 434201 , 454354 , 483513 , 616472 , 422351 , 582229 , 431975 , 582248 , 458608 , 623933 , 531187 );
Copy
4
2.03 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
223551
422351
422546
431975
434201
435356
454354
458608
477581
483513
487206
489241
495014
508754
508777
519922
519925
521249
528052
531187
540164
545747
551114
560982
566657
572705
582229
582248
597666
605154
616472
623797
623933
624419
625240
628441
633447
635210
639798
656619
661917
664476
666869
675607
692818
693367
694134
709505
724114
734626
739910
742015
748071
756871
762979
767023
782671
790499
792721
793434
794754
809784
813272
814263
823753
825818
]
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 (223551 , 422351 , 422546 , 431975 , 434201 , 435356 , 454354 , 458608 , 477581 , 483513 , 487206 , 489241 , 495014 , 508754 , 508777 , 519922 , 519925 , 521249 , 528052 , 531187 , 540164 , 545747 , 551114 , 560982 , 566657 , 572705 , 582229 , 582248 , 597666 , 605154 , 616472 , 623797 , 623933 , 624419 , 625240 , 628441 , 633447 , 635210 , 639798 , 656619 , 661917 , 664476 , 666869 , 675607 , 692818 , 693367 , 694134 , 709505 , 724114 , 734626 , 739910 , 742015 , 748071 , 756871 , 762979 , 767023 , 782671 , 790499 , 792721 , 793434 , 794754 , 809784 , 813272 , 814263 , 823753 , 825818 );
Copy
5
168.72 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
223551
422351
422546
431975
434201
435356
454354
458608
477581
483513
487206
489241
495014
508754
508777
519922
519925
521249
528052
531187
540164
545747
551114
560982
566657
572705
582229
582248
597666
605154
616472
623797
623933
624419
625240
628441
633447
635210
639798
656619
661917
664476
666869
675607
692818
693367
694134
709505
724114
734626
739910
742015
748071
756871
762979
767023
782671
790499
792721
793434
794754
809784
813272
814263
823753
825818
]
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 (223551 , 422351 , 422546 , 431975 , 434201 , 435356 , 454354 , 458608 , 477581 , 483513 , 487206 , 489241 , 495014 , 508754 , 508777 , 519922 , 519925 , 521249 , 528052 , 531187 , 540164 , 545747 , 551114 , 560982 , 566657 , 572705 , 582229 , 582248 , 597666 , 605154 , 616472 , 623797 , 623933 , 624419 , 625240 , 628441 , 633447 , 635210 , 639798 , 656619 , 661917 , 664476 , 666869 , 675607 , 692818 , 693367 , 694134 , 709505 , 724114 , 734626 , 739910 , 742015 , 748071 , 756871 , 762979 , 767023 , 782671 , 790499 , 792721 , 793434 , 794754 , 809784 , 813272 , 814263 , 823753 , 825818 );
Copy