4
12.03 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
477478
636598
578717
651039
78412
469586
130054
531280
606584
604474
720257
653728
605590
636574
636576
543602
632700
573211
635490
575689
636593
326134
436042
636579
720249
636564
599863
580262
584018
477483
545405
429088
161485
540785
540513
554409
389315
583995
635486
634474
531393
455611
425655
605569
414058
654294
631908
630915
720127
551034
543613
720288
660424
683529
395406
478096
420769
606541
632614
466552
629967
423329
627812
391386
649525
621612
601101
516684
554392
]
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 (477478 , 636598 , 578717 , 651039 , 78412 , 469586 , 130054 , 531280 , 606584 , 604474 , 720257 , 653728 , 605590 , 636574 , 636576 , 543602 , 632700 , 573211 , 635490 , 575689 , 636593 , 326134 , 436042 , 636579 , 720249 , 636564 , 599863 , 580262 , 584018 , 477483 , 545405 , 429088 , 161485 , 540785 , 540513 , 554409 , 389315 , 583995 , 635486 , 634474 , 531393 , 455611 , 425655 , 605569 , 414058 , 654294 , 631908 , 630915 , 720127 , 551034 , 543613 , 720288 , 660424 , 683529 , 395406 , 478096 , 420769 , 606541 , 632614 , 466552 , 629967 , 423329 , 627812 , 391386 , 649525 , 621612 , 601101 , 516684 , 554392 );
Copy
5
2.82 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
78412
130054
161485
326134
389315
391386
395406
414058
420769
423329
425655
429088
436042
455611
466552
469586
477478
477483
478096
516684
531280
531393
540513
540785
543602
543613
545405
551034
554392
554409
573211
575689
578717
580262
583995
584018
599863
601101
604474
605569
605590
606541
606584
621612
627812
629967
630915
631908
632614
632700
634474
635486
635490
636564
636574
636576
636579
636593
636598
649525
651039
653728
654294
660424
683529
720127
720249
720257
720288
]
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 (78412 , 130054 , 161485 , 326134 , 389315 , 391386 , 395406 , 414058 , 420769 , 423329 , 425655 , 429088 , 436042 , 455611 , 466552 , 469586 , 477478 , 477483 , 478096 , 516684 , 531280 , 531393 , 540513 , 540785 , 543602 , 543613 , 545405 , 551034 , 554392 , 554409 , 573211 , 575689 , 578717 , 580262 , 583995 , 584018 , 599863 , 601101 , 604474 , 605569 , 605590 , 606541 , 606584 , 621612 , 627812 , 629967 , 630915 , 631908 , 632614 , 632700 , 634474 , 635486 , 635490 , 636564 , 636574 , 636576 , 636579 , 636593 , 636598 , 649525 , 651039 , 653728 , 654294 , 660424 , 683529 , 720127 , 720249 , 720257 , 720288 );
Copy
6
82.15 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
78412
130054
161485
326134
389315
391386
395406
414058
420769
423329
425655
429088
436042
455611
466552
469586
477478
477483
478096
516684
531280
531393
540513
540785
543602
543613
545405
551034
554392
554409
573211
575689
578717
580262
583995
584018
599863
601101
604474
605569
605590
606541
606584
621612
627812
629967
630915
631908
632614
632700
634474
635486
635490
636564
636574
636576
636579
636593
636598
649525
651039
653728
654294
660424
683529
720127
720249
720257
720288
]
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 (78412 , 130054 , 161485 , 326134 , 389315 , 391386 , 395406 , 414058 , 420769 , 423329 , 425655 , 429088 , 436042 , 455611 , 466552 , 469586 , 477478 , 477483 , 478096 , 516684 , 531280 , 531393 , 540513 , 540785 , 543602 , 543613 , 545405 , 551034 , 554392 , 554409 , 573211 , 575689 , 578717 , 580262 , 583995 , 584018 , 599863 , 601101 , 604474 , 605569 , 605590 , 606541 , 606584 , 621612 , 627812 , 629967 , 630915 , 631908 , 632614 , 632700 , 634474 , 635486 , 635490 , 636564 , 636574 , 636576 , 636579 , 636593 , 636598 , 649525 , 651039 , 653728 , 654294 , 660424 , 683529 , 720127 , 720249 , 720257 , 720288 );
Copy