3
15.35 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
642775
419452
424648
427209
566907
537929
640789
593541
599635
469681
585587
471316
590505
532531
558762
580629
494399
638991
750701
487342
516584
413649
489377
530661
533747
566366
456393
550579
726487
426399
678950
565776
528030
454215
752563
504980
515726
628087
696499
515128
580225
501676
550643
668461
604183
454709
484807
536584
456518
428055
488710
494492
537789
569155
592333
439233
463819
469223
665139
475890
589064
411455
607374
469327
478025
525102
530492
560660
564363
445738
]
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 (642775 , 419452 , 424648 , 427209 , 566907 , 537929 , 640789 , 593541 , 599635 , 469681 , 585587 , 471316 , 590505 , 532531 , 558762 , 580629 , 494399 , 638991 , 750701 , 487342 , 516584 , 413649 , 489377 , 530661 , 533747 , 566366 , 456393 , 550579 , 726487 , 426399 , 678950 , 565776 , 528030 , 454215 , 752563 , 504980 , 515726 , 628087 , 696499 , 515128 , 580225 , 501676 , 550643 , 668461 , 604183 , 454709 , 484807 , 536584 , 456518 , 428055 , 488710 , 494492 , 537789 , 569155 , 592333 , 439233 , 463819 , 469223 , 665139 , 475890 , 589064 , 411455 , 607374 , 469327 , 478025 , 525102 , 530492 , 560660 , 564363 , 445738 );
Copy
4
2.07 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
411455
413649
419452
424648
426399
427209
428055
439233
445738
454215
454709
456393
456518
463819
469223
469327
469681
471316
475890
478025
484807
487342
488710
489377
494399
494492
501676
504980
515128
515726
516584
525102
528030
530492
530661
532531
533747
536584
537789
537929
550579
550643
558762
560660
564363
565776
566366
566907
569155
580225
580629
585587
589064
590505
592333
593541
599635
604183
607374
628087
638991
640789
642775
665139
668461
678950
696499
726487
750701
752563
]
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 (411455 , 413649 , 419452 , 424648 , 426399 , 427209 , 428055 , 439233 , 445738 , 454215 , 454709 , 456393 , 456518 , 463819 , 469223 , 469327 , 469681 , 471316 , 475890 , 478025 , 484807 , 487342 , 488710 , 489377 , 494399 , 494492 , 501676 , 504980 , 515128 , 515726 , 516584 , 525102 , 528030 , 530492 , 530661 , 532531 , 533747 , 536584 , 537789 , 537929 , 550579 , 550643 , 558762 , 560660 , 564363 , 565776 , 566366 , 566907 , 569155 , 580225 , 580629 , 585587 , 589064 , 590505 , 592333 , 593541 , 599635 , 604183 , 607374 , 628087 , 638991 , 640789 , 642775 , 665139 , 668461 , 678950 , 696499 , 726487 , 750701 , 752563 );
Copy
5
89.35 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
411455
413649
419452
424648
426399
427209
428055
439233
445738
454215
454709
456393
456518
463819
469223
469327
469681
471316
475890
478025
484807
487342
488710
489377
494399
494492
501676
504980
515128
515726
516584
525102
528030
530492
530661
532531
533747
536584
537789
537929
550579
550643
558762
560660
564363
565776
566366
566907
569155
580225
580629
585587
589064
590505
592333
593541
599635
604183
607374
628087
638991
640789
642775
665139
668461
678950
696499
726487
750701
752563
]
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 (411455 , 413649 , 419452 , 424648 , 426399 , 427209 , 428055 , 439233 , 445738 , 454215 , 454709 , 456393 , 456518 , 463819 , 469223 , 469327 , 469681 , 471316 , 475890 , 478025 , 484807 , 487342 , 488710 , 489377 , 494399 , 494492 , 501676 , 504980 , 515128 , 515726 , 516584 , 525102 , 528030 , 530492 , 530661 , 532531 , 533747 , 536584 , 537789 , 537929 , 550579 , 550643 , 558762 , 560660 , 564363 , 565776 , 566366 , 566907 , 569155 , 580225 , 580629 , 585587 , 589064 , 590505 , 592333 , 593541 , 599635 , 604183 , 607374 , 628087 , 638991 , 640789 , 642775 , 665139 , 668461 , 678950 , 696499 , 726487 , 750701 , 752563 );
Copy