3
11.64 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
748219
748254
539429
759566
725399
748238
508162
761119
474412
758299
748239
524351
817284
503952
758814
731805
187953
191393
820331
559684
605509
770926
467025
814923
518730
484944
651039
748252
472788
432821
504951
401916
388789
385377
478546
191048
815351
523803
443660
545501
514808
466493
515956
630915
635490
502921
516635
815697
464464
466994
449880
636579
628654
514659
519346
466963
492688
682303
607398
478108
615909
521852
529290
549246
477230
]
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 (748219 , 748254 , 539429 , 759566 , 725399 , 748238 , 508162 , 761119 , 474412 , 758299 , 748239 , 524351 , 817284 , 503952 , 758814 , 731805 , 187953 , 191393 , 820331 , 559684 , 605509 , 770926 , 467025 , 814923 , 518730 , 484944 , 651039 , 748252 , 472788 , 432821 , 504951 , 401916 , 388789 , 385377 , 478546 , 191048 , 815351 , 523803 , 443660 , 545501 , 514808 , 466493 , 515956 , 630915 , 635490 , 502921 , 516635 , 815697 , 464464 , 466994 , 449880 , 636579 , 628654 , 514659 , 519346 , 466963 , 492688 , 682303 , 607398 , 478108 , 615909 , 521852 , 529290 , 549246 , 477230 );
Copy
4
2.44 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
187953
191048
191393
385377
388789
401916
432821
443660
449880
464464
466493
466963
466994
467025
472788
474412
477230
478108
478546
484944
492688
502921
503952
504951
508162
514659
514808
515956
516635
518730
519346
521852
523803
524351
529290
539429
545501
549246
559684
605509
607398
615909
628654
630915
635490
636579
651039
682303
725399
731805
748219
748238
748239
748252
748254
758299
758814
759566
761119
770926
814923
815351
815697
817284
820331
]
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 (187953 , 191048 , 191393 , 385377 , 388789 , 401916 , 432821 , 443660 , 449880 , 464464 , 466493 , 466963 , 466994 , 467025 , 472788 , 474412 , 477230 , 478108 , 478546 , 484944 , 492688 , 502921 , 503952 , 504951 , 508162 , 514659 , 514808 , 515956 , 516635 , 518730 , 519346 , 521852 , 523803 , 524351 , 529290 , 539429 , 545501 , 549246 , 559684 , 605509 , 607398 , 615909 , 628654 , 630915 , 635490 , 636579 , 651039 , 682303 , 725399 , 731805 , 748219 , 748238 , 748239 , 748252 , 748254 , 758299 , 758814 , 759566 , 761119 , 770926 , 814923 , 815351 , 815697 , 817284 , 820331 );
Copy
5
72.90 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
187953
191048
191393
385377
388789
401916
432821
443660
449880
464464
466493
466963
466994
467025
472788
474412
477230
478108
478546
484944
492688
502921
503952
504951
508162
514659
514808
515956
516635
518730
519346
521852
523803
524351
529290
539429
545501
549246
559684
605509
607398
615909
628654
630915
635490
636579
651039
682303
725399
731805
748219
748238
748239
748252
748254
758299
758814
759566
761119
770926
814923
815351
815697
817284
820331
]
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 (187953 , 191048 , 191393 , 385377 , 388789 , 401916 , 432821 , 443660 , 449880 , 464464 , 466493 , 466963 , 466994 , 467025 , 472788 , 474412 , 477230 , 478108 , 478546 , 484944 , 492688 , 502921 , 503952 , 504951 , 508162 , 514659 , 514808 , 515956 , 516635 , 518730 , 519346 , 521852 , 523803 , 524351 , 529290 , 539429 , 545501 , 549246 , 559684 , 605509 , 607398 , 615909 , 628654 , 630915 , 635490 , 636579 , 651039 , 682303 , 725399 , 731805 , 748219 , 748238 , 748239 , 748252 , 748254 , 758299 , 758814 , 759566 , 761119 , 770926 , 814923 , 815351 , 815697 , 817284 , 820331 );
Copy