3
10.92 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
565682
521840
251147
577199
527764
674381
402980
427472
674528
693396
477413
536353
509388
549354
391302
395672
526482
519262
573319
464479
385308
607705
543623
553102
189022
509199
428798
541780
566007
514458
523635
454242
501027
537132
472765
515891
482997
484485
460119
420601
662382
96272
420060
391027
506803
421323
731279
559080
562829
501785
514383
473980
583819
444141
445542
495230
598080
391910
650291
682252
465377
484739
528803
637404
475249
624846
538027
613359
]
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 (565682 , 521840 , 251147 , 577199 , 527764 , 674381 , 402980 , 427472 , 674528 , 693396 , 477413 , 536353 , 509388 , 549354 , 391302 , 395672 , 526482 , 519262 , 573319 , 464479 , 385308 , 607705 , 543623 , 553102 , 189022 , 509199 , 428798 , 541780 , 566007 , 514458 , 523635 , 454242 , 501027 , 537132 , 472765 , 515891 , 482997 , 484485 , 460119 , 420601 , 662382 , 96272 , 420060 , 391027 , 506803 , 421323 , 731279 , 559080 , 562829 , 501785 , 514383 , 473980 , 583819 , 444141 , 445542 , 495230 , 598080 , 391910 , 650291 , 682252 , 465377 , 484739 , 528803 , 637404 , 475249 , 624846 , 538027 , 613359 );
Copy
4
210.64 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
96272
189022
251147
385308
391027
391302
391910
395672
402980
420060
420601
421323
427472
428798
444141
445542
454242
460119
464479
465377
472765
473980
475249
477413
482997
484485
484739
495230
501027
501785
506803
509199
509388
514383
514458
515891
519262
521840
523635
526482
527764
528803
536353
537132
538027
541780
543623
549354
553102
559080
562829
565682
566007
573319
577199
583819
598080
607705
613359
624846
637404
650291
662382
674381
674528
682252
693396
731279
]
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 (96272 , 189022 , 251147 , 385308 , 391027 , 391302 , 391910 , 395672 , 402980 , 420060 , 420601 , 421323 , 427472 , 428798 , 444141 , 445542 , 454242 , 460119 , 464479 , 465377 , 472765 , 473980 , 475249 , 477413 , 482997 , 484485 , 484739 , 495230 , 501027 , 501785 , 506803 , 509199 , 509388 , 514383 , 514458 , 515891 , 519262 , 521840 , 523635 , 526482 , 527764 , 528803 , 536353 , 537132 , 538027 , 541780 , 543623 , 549354 , 553102 , 559080 , 562829 , 565682 , 566007 , 573319 , 577199 , 583819 , 598080 , 607705 , 613359 , 624846 , 637404 , 650291 , 662382 , 674381 , 674528 , 682252 , 693396 , 731279 );
Copy
5
76.42 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
96272
189022
251147
385308
391027
391302
391910
395672
402980
420060
420601
421323
427472
428798
444141
445542
454242
460119
464479
465377
472765
473980
475249
477413
482997
484485
484739
495230
501027
501785
506803
509199
509388
514383
514458
515891
519262
521840
523635
526482
527764
528803
536353
537132
538027
541780
543623
549354
553102
559080
562829
565682
566007
573319
577199
583819
598080
607705
613359
624846
637404
650291
662382
674381
674528
682252
693396
731279
]
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 (96272 , 189022 , 251147 , 385308 , 391027 , 391302 , 391910 , 395672 , 402980 , 420060 , 420601 , 421323 , 427472 , 428798 , 444141 , 445542 , 454242 , 460119 , 464479 , 465377 , 472765 , 473980 , 475249 , 477413 , 482997 , 484485 , 484739 , 495230 , 501027 , 501785 , 506803 , 509199 , 509388 , 514383 , 514458 , 515891 , 519262 , 521840 , 523635 , 526482 , 527764 , 528803 , 536353 , 537132 , 538027 , 541780 , 543623 , 549354 , 553102 , 559080 , 562829 , 565682 , 566007 , 573319 , 577199 , 583819 , 598080 , 607705 , 613359 , 624846 , 637404 , 650291 , 662382 , 674381 , 674528 , 682252 , 693396 , 731279 );
Copy