3
11.86 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
389243
328609
413745
425694
420250
401509
178567
458098
385370
393049
420231
466691
383118
384461
391208
433745
556406
122425
559162
517857
390508
387682
143010
420237
185223
257723
419126
450822
433512
428518
453302
475450
420499
459229
392423
384200
399738
475448
388144
435715
429541
468705
401724
410366
420216
398053
446870
458341
583397
331119
453016
420192
408601
508769
482710
404384
414069
467639
32678
448811
478032
396094
97688
464651
533348
459637
460327
]
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 (389243 , 328609 , 413745 , 425694 , 420250 , 401509 , 178567 , 458098 , 385370 , 393049 , 420231 , 466691 , 383118 , 384461 , 391208 , 433745 , 556406 , 122425 , 559162 , 517857 , 390508 , 387682 , 143010 , 420237 , 185223 , 257723 , 419126 , 450822 , 433512 , 428518 , 453302 , 475450 , 420499 , 459229 , 392423 , 384200 , 399738 , 475448 , 388144 , 435715 , 429541 , 468705 , 401724 , 410366 , 420216 , 398053 , 446870 , 458341 , 583397 , 331119 , 453016 , 420192 , 408601 , 508769 , 482710 , 404384 , 414069 , 467639 , 32678 , 448811 , 478032 , 396094 , 97688 , 464651 , 533348 , 459637 , 460327 );
Copy
4
3.20 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
32678
97688
122425
143010
178567
185223
257723
328609
331119
383118
384200
384461
385370
387682
388144
389243
390508
391208
392423
393049
396094
398053
399738
401509
401724
404384
408601
410366
413745
414069
419126
420192
420216
420231
420237
420250
420499
425694
428518
429541
433512
433745
435715
446870
448811
450822
453016
453302
458098
458341
459229
459637
460327
464651
466691
467639
468705
475448
475450
478032
482710
508769
517857
533348
556406
559162
583397
]
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 (32678 , 97688 , 122425 , 143010 , 178567 , 185223 , 257723 , 328609 , 331119 , 383118 , 384200 , 384461 , 385370 , 387682 , 388144 , 389243 , 390508 , 391208 , 392423 , 393049 , 396094 , 398053 , 399738 , 401509 , 401724 , 404384 , 408601 , 410366 , 413745 , 414069 , 419126 , 420192 , 420216 , 420231 , 420237 , 420250 , 420499 , 425694 , 428518 , 429541 , 433512 , 433745 , 435715 , 446870 , 448811 , 450822 , 453016 , 453302 , 458098 , 458341 , 459229 , 459637 , 460327 , 464651 , 466691 , 467639 , 468705 , 475448 , 475450 , 478032 , 482710 , 508769 , 517857 , 533348 , 556406 , 559162 , 583397 );
Copy
5
84.51 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
32678
97688
122425
143010
178567
185223
257723
328609
331119
383118
384200
384461
385370
387682
388144
389243
390508
391208
392423
393049
396094
398053
399738
401509
401724
404384
408601
410366
413745
414069
419126
420192
420216
420231
420237
420250
420499
425694
428518
429541
433512
433745
435715
446870
448811
450822
453016
453302
458098
458341
459229
459637
460327
464651
466691
467639
468705
475448
475450
478032
482710
508769
517857
533348
556406
559162
583397
]
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 (32678 , 97688 , 122425 , 143010 , 178567 , 185223 , 257723 , 328609 , 331119 , 383118 , 384200 , 384461 , 385370 , 387682 , 388144 , 389243 , 390508 , 391208 , 392423 , 393049 , 396094 , 398053 , 399738 , 401509 , 401724 , 404384 , 408601 , 410366 , 413745 , 414069 , 419126 , 420192 , 420216 , 420231 , 420237 , 420250 , 420499 , 425694 , 428518 , 429541 , 433512 , 433745 , 435715 , 446870 , 448811 , 450822 , 453016 , 453302 , 458098 , 458341 , 459229 , 459637 , 460327 , 464651 , 466691 , 467639 , 468705 , 475448 , 475450 , 478032 , 482710 , 508769 , 517857 , 533348 , 556406 , 559162 , 583397 );
Copy