3
13.99 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
404175
421025
424782
454227
477593
495656
382355
401032
429137
470047
472464
510392
488898
507257
464327
814746
453812
439786
426009
523856
494589
527412
506305
497953
433212
466927
447926
554833
544366
443099
458191
426988
443784
502277
617421
537198
425655
452082
466994
454802
461025
602754
479709
461723
464266
519563
580869
417349
401919
507944
482953
509802
417801
541833
465487
470596
445641
499598
623199
521453
499852
596839
588318
522013
]
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 (404175 , 421025 , 424782 , 454227 , 477593 , 495656 , 382355 , 401032 , 429137 , 470047 , 472464 , 510392 , 488898 , 507257 , 464327 , 814746 , 453812 , 439786 , 426009 , 523856 , 494589 , 527412 , 506305 , 497953 , 433212 , 466927 , 447926 , 554833 , 544366 , 443099 , 458191 , 426988 , 443784 , 502277 , 617421 , 537198 , 425655 , 452082 , 466994 , 454802 , 461025 , 602754 , 479709 , 461723 , 464266 , 519563 , 580869 , 417349 , 401919 , 507944 , 482953 , 509802 , 417801 , 541833 , 465487 , 470596 , 445641 , 499598 , 623199 , 521453 , 499852 , 596839 , 588318 , 522013 );
Copy
4
2.99 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
382355
401032
401919
404175
417349
417801
421025
424782
425655
426009
426988
429137
433212
439786
443099
443784
445641
447926
452082
453812
454227
454802
458191
461025
461723
464266
464327
465487
466927
466994
470047
470596
472464
477593
479709
482953
488898
494589
495656
497953
499598
499852
502277
506305
507257
507944
509802
510392
519563
521453
522013
523856
527412
537198
541833
544366
554833
580869
588318
596839
602754
617421
623199
814746
]
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 (382355 , 401032 , 401919 , 404175 , 417349 , 417801 , 421025 , 424782 , 425655 , 426009 , 426988 , 429137 , 433212 , 439786 , 443099 , 443784 , 445641 , 447926 , 452082 , 453812 , 454227 , 454802 , 458191 , 461025 , 461723 , 464266 , 464327 , 465487 , 466927 , 466994 , 470047 , 470596 , 472464 , 477593 , 479709 , 482953 , 488898 , 494589 , 495656 , 497953 , 499598 , 499852 , 502277 , 506305 , 507257 , 507944 , 509802 , 510392 , 519563 , 521453 , 522013 , 523856 , 527412 , 537198 , 541833 , 544366 , 554833 , 580869 , 588318 , 596839 , 602754 , 617421 , 623199 , 814746 );
Copy
5
89.28 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
382355
401032
401919
404175
417349
417801
421025
424782
425655
426009
426988
429137
433212
439786
443099
443784
445641
447926
452082
453812
454227
454802
458191
461025
461723
464266
464327
465487
466927
466994
470047
470596
472464
477593
479709
482953
488898
494589
495656
497953
499598
499852
502277
506305
507257
507944
509802
510392
519563
521453
522013
523856
527412
537198
541833
544366
554833
580869
588318
596839
602754
617421
623199
814746
]
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 (382355 , 401032 , 401919 , 404175 , 417349 , 417801 , 421025 , 424782 , 425655 , 426009 , 426988 , 429137 , 433212 , 439786 , 443099 , 443784 , 445641 , 447926 , 452082 , 453812 , 454227 , 454802 , 458191 , 461025 , 461723 , 464266 , 464327 , 465487 , 466927 , 466994 , 470047 , 470596 , 472464 , 477593 , 479709 , 482953 , 488898 , 494589 , 495656 , 497953 , 499598 , 499852 , 502277 , 506305 , 507257 , 507944 , 509802 , 510392 , 519563 , 521453 , 522013 , 523856 , 527412 , 537198 , 541833 , 544366 , 554833 , 580869 , 588318 , 596839 , 602754 , 617421 , 623199 , 814746 );
Copy