4
12.01 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
599945
600332
636579
632654
639802
587542
599994
600334
778359
447926
531163
531272
535505
533374
494264
545441
541856
545851
687257
646771
651209
646786
649578
642658
600490
600268
600355
627807
540398
540410
533370
551223
583981
649596
569922
599867
600296
642063
599913
599965
600019
600363
601595
601613
632635
477097
820762
532751
534387
667748
630550
632678
698133
644986
532812
545389
545410
676428
695181
636306
637413
601101
635275
588318
]
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 (599945 , 600332 , 636579 , 632654 , 639802 , 587542 , 599994 , 600334 , 778359 , 447926 , 531163 , 531272 , 535505 , 533374 , 494264 , 545441 , 541856 , 545851 , 687257 , 646771 , 651209 , 646786 , 649578 , 642658 , 600490 , 600268 , 600355 , 627807 , 540398 , 540410 , 533370 , 551223 , 583981 , 649596 , 569922 , 599867 , 600296 , 642063 , 599913 , 599965 , 600019 , 600363 , 601595 , 601613 , 632635 , 477097 , 820762 , 532751 , 534387 , 667748 , 630550 , 632678 , 698133 , 644986 , 532812 , 545389 , 545410 , 676428 , 695181 , 636306 , 637413 , 601101 , 635275 , 588318 );
Copy
5
2.45 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
447926
477097
494264
531163
531272
532751
532812
533370
533374
534387
535505
540398
540410
541856
545389
545410
545441
545851
551223
569922
583981
587542
588318
599867
599913
599945
599965
599994
600019
600268
600296
600332
600334
600355
600363
600490
601101
601595
601613
627807
630550
632635
632654
632678
635275
636306
636579
637413
639802
642063
642658
644986
646771
646786
649578
649596
651209
667748
676428
687257
695181
698133
778359
820762
]
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 (447926 , 477097 , 494264 , 531163 , 531272 , 532751 , 532812 , 533370 , 533374 , 534387 , 535505 , 540398 , 540410 , 541856 , 545389 , 545410 , 545441 , 545851 , 551223 , 569922 , 583981 , 587542 , 588318 , 599867 , 599913 , 599945 , 599965 , 599994 , 600019 , 600268 , 600296 , 600332 , 600334 , 600355 , 600363 , 600490 , 601101 , 601595 , 601613 , 627807 , 630550 , 632635 , 632654 , 632678 , 635275 , 636306 , 636579 , 637413 , 639802 , 642063 , 642658 , 644986 , 646771 , 646786 , 649578 , 649596 , 651209 , 667748 , 676428 , 687257 , 695181 , 698133 , 778359 , 820762 );
Copy
6
96.13 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
447926
477097
494264
531163
531272
532751
532812
533370
533374
534387
535505
540398
540410
541856
545389
545410
545441
545851
551223
569922
583981
587542
588318
599867
599913
599945
599965
599994
600019
600268
600296
600332
600334
600355
600363
600490
601101
601595
601613
627807
630550
632635
632654
632678
635275
636306
636579
637413
639802
642063
642658
644986
646771
646786
649578
649596
651209
667748
676428
687257
695181
698133
778359
820762
]
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 (447926 , 477097 , 494264 , 531163 , 531272 , 532751 , 532812 , 533370 , 533374 , 534387 , 535505 , 540398 , 540410 , 541856 , 545389 , 545410 , 545441 , 545851 , 551223 , 569922 , 583981 , 587542 , 588318 , 599867 , 599913 , 599945 , 599965 , 599994 , 600019 , 600268 , 600296 , 600332 , 600334 , 600355 , 600363 , 600490 , 601101 , 601595 , 601613 , 627807 , 630550 , 632635 , 632654 , 632678 , 635275 , 636306 , 636579 , 637413 , 639802 , 642063 , 642658 , 644986 , 646771 , 646786 , 649578 , 649596 , 651209 , 667748 , 676428 , 687257 , 695181 , 698133 , 778359 , 820762 );
Copy