3
13.72 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
572083
447097
522812
813565
571854
701520
577331
541833
458835
571904
541416
572155
700732
570003
798743
389593
426897
569847
773453
570378
611261
458230
570665
569862
570352
732067
417696
583369
512513
624013
617436
455190
457113
521046
580294
565979
737361
455335
427174
499349
494095
523088
555994
572168
604621
586862
465996
599631
415734
521353
491641
671104
434307
476430
472299
486875
701348
588294
566577
588650
595256
619526
657775
625440
526951
562790
]
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 (572083 , 447097 , 522812 , 813565 , 571854 , 701520 , 577331 , 541833 , 458835 , 571904 , 541416 , 572155 , 700732 , 570003 , 798743 , 389593 , 426897 , 569847 , 773453 , 570378 , 611261 , 458230 , 570665 , 569862 , 570352 , 732067 , 417696 , 583369 , 512513 , 624013 , 617436 , 455190 , 457113 , 521046 , 580294 , 565979 , 737361 , 455335 , 427174 , 499349 , 494095 , 523088 , 555994 , 572168 , 604621 , 586862 , 465996 , 599631 , 415734 , 521353 , 491641 , 671104 , 434307 , 476430 , 472299 , 486875 , 701348 , 588294 , 566577 , 588650 , 595256 , 619526 , 657775 , 625440 , 526951 , 562790 );
Copy
4
2.67 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
389593
415734
417696
426897
427174
434307
447097
455190
455335
457113
458230
458835
465996
472299
476430
486875
491641
494095
499349
512513
521046
521353
522812
523088
526951
541416
541833
555994
562790
565979
566577
569847
569862
570003
570352
570378
570665
571854
571904
572083
572155
572168
577331
580294
583369
586862
588294
588650
595256
599631
611261
617436
619526
624013
625440
657775
671104
700732
701348
701520
732067
737361
773453
798743
813565
]
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 (389593 , 415734 , 417696 , 426897 , 427174 , 434307 , 447097 , 455190 , 455335 , 457113 , 458230 , 458835 , 465996 , 472299 , 476430 , 486875 , 491641 , 494095 , 499349 , 512513 , 521046 , 521353 , 522812 , 523088 , 526951 , 541416 , 541833 , 555994 , 562790 , 565979 , 566577 , 569847 , 569862 , 570003 , 570352 , 570378 , 570665 , 571854 , 571904 , 572083 , 572155 , 572168 , 577331 , 580294 , 583369 , 586862 , 588294 , 588650 , 595256 , 599631 , 611261 , 617436 , 619526 , 624013 , 625440 , 657775 , 671104 , 700732 , 701348 , 701520 , 732067 , 737361 , 773453 , 798743 , 813565 );
Copy
5
73.24 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
389593
415734
417696
426897
427174
434307
447097
455190
455335
457113
458230
458835
465996
472299
476430
486875
491641
494095
499349
512513
521046
521353
522812
523088
526951
541416
541833
555994
562790
565979
566577
569847
569862
570003
570352
570378
570665
571854
571904
572083
572155
572168
577331
580294
583369
586862
588294
588650
595256
599631
611261
617436
619526
624013
625440
657775
671104
700732
701348
701520
732067
737361
773453
798743
813565
]
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 (389593 , 415734 , 417696 , 426897 , 427174 , 434307 , 447097 , 455190 , 455335 , 457113 , 458230 , 458835 , 465996 , 472299 , 476430 , 486875 , 491641 , 494095 , 499349 , 512513 , 521046 , 521353 , 522812 , 523088 , 526951 , 541416 , 541833 , 555994 , 562790 , 565979 , 566577 , 569847 , 569862 , 570003 , 570352 , 570378 , 570665 , 571854 , 571904 , 572083 , 572155 , 572168 , 577331 , 580294 , 583369 , 586862 , 588294 , 588650 , 595256 , 599631 , 611261 , 617436 , 619526 , 624013 , 625440 , 657775 , 671104 , 700732 , 701348 , 701520 , 732067 , 737361 , 773453 , 798743 , 813565 );
Copy