3
10.61 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
547931
661300
442367
469071
496977
508569
720271
601176
599700
814870
663988
689004
556609
592342
620797
585703
601331
635920
490198
517612
558447
549726
554539
483660
521617
548848
528397
624064
517117
515891
526353
542971
558958
575488
554060
590886
478517
517240
521372
649525
608279
821605
627745
525828
558439
422028
490091
576108
610692
541961
500477
550667
516938
680100
577711
524490
434369
523499
662435
594590
518421
571806
663372
628273
576113
619003
]
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 (547931 , 661300 , 442367 , 469071 , 496977 , 508569 , 720271 , 601176 , 599700 , 814870 , 663988 , 689004 , 556609 , 592342 , 620797 , 585703 , 601331 , 635920 , 490198 , 517612 , 558447 , 549726 , 554539 , 483660 , 521617 , 548848 , 528397 , 624064 , 517117 , 515891 , 526353 , 542971 , 558958 , 575488 , 554060 , 590886 , 478517 , 517240 , 521372 , 649525 , 608279 , 821605 , 627745 , 525828 , 558439 , 422028 , 490091 , 576108 , 610692 , 541961 , 500477 , 550667 , 516938 , 680100 , 577711 , 524490 , 434369 , 523499 , 662435 , 594590 , 518421 , 571806 , 663372 , 628273 , 576113 , 619003 );
Copy
4
2.74 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
422028
434369
442367
469071
478517
483660
490091
490198
496977
500477
508569
515891
516938
517117
517240
517612
518421
521372
521617
523499
524490
525828
526353
528397
541961
542971
547931
548848
549726
550667
554060
554539
556609
558439
558447
558958
571806
575488
576108
576113
577711
585703
590886
592342
594590
599700
601176
601331
608279
610692
619003
620797
624064
627745
628273
635920
649525
661300
662435
663372
663988
680100
689004
720271
814870
821605
]
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 (422028 , 434369 , 442367 , 469071 , 478517 , 483660 , 490091 , 490198 , 496977 , 500477 , 508569 , 515891 , 516938 , 517117 , 517240 , 517612 , 518421 , 521372 , 521617 , 523499 , 524490 , 525828 , 526353 , 528397 , 541961 , 542971 , 547931 , 548848 , 549726 , 550667 , 554060 , 554539 , 556609 , 558439 , 558447 , 558958 , 571806 , 575488 , 576108 , 576113 , 577711 , 585703 , 590886 , 592342 , 594590 , 599700 , 601176 , 601331 , 608279 , 610692 , 619003 , 620797 , 624064 , 627745 , 628273 , 635920 , 649525 , 661300 , 662435 , 663372 , 663988 , 680100 , 689004 , 720271 , 814870 , 821605 );
Copy
5
76.96 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
422028
434369
442367
469071
478517
483660
490091
490198
496977
500477
508569
515891
516938
517117
517240
517612
518421
521372
521617
523499
524490
525828
526353
528397
541961
542971
547931
548848
549726
550667
554060
554539
556609
558439
558447
558958
571806
575488
576108
576113
577711
585703
590886
592342
594590
599700
601176
601331
608279
610692
619003
620797
624064
627745
628273
635920
649525
661300
662435
663372
663988
680100
689004
720271
814870
821605
]
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 (422028 , 434369 , 442367 , 469071 , 478517 , 483660 , 490091 , 490198 , 496977 , 500477 , 508569 , 515891 , 516938 , 517117 , 517240 , 517612 , 518421 , 521372 , 521617 , 523499 , 524490 , 525828 , 526353 , 528397 , 541961 , 542971 , 547931 , 548848 , 549726 , 550667 , 554060 , 554539 , 556609 , 558439 , 558447 , 558958 , 571806 , 575488 , 576108 , 576113 , 577711 , 585703 , 590886 , 592342 , 594590 , 599700 , 601176 , 601331 , 608279 , 610692 , 619003 , 620797 , 624064 , 627745 , 628273 , 635920 , 649525 , 661300 , 662435 , 663372 , 663988 , 680100 , 689004 , 720271 , 814870 , 821605 );
Copy