4
11.58 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
681736
504711
487316
493020
502950
543839
572125
471972
489575
523606
470637
477630
572692
574600
472013
465930
511696
516262
511701
493153
522699
525141
500144
508004
493347
560588
566938
570136
560567
565839
573044
461837
389117
472873
435884
475622
500849
526344
528182
526253
484396
523175
540731
507436
493490
455126
544396
463248
458467
456550
479115
429863
470641
439325
495449
507349
483315
488282
505069
524254
470676
470389
555992
562961
452651
460752
469641
500978
504227
546947
565476
465828
526118
470064
]
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 (681736 , 504711 , 487316 , 493020 , 502950 , 543839 , 572125 , 471972 , 489575 , 523606 , 470637 , 477630 , 572692 , 574600 , 472013 , 465930 , 511696 , 516262 , 511701 , 493153 , 522699 , 525141 , 500144 , 508004 , 493347 , 560588 , 566938 , 570136 , 560567 , 565839 , 573044 , 461837 , 389117 , 472873 , 435884 , 475622 , 500849 , 526344 , 528182 , 526253 , 484396 , 523175 , 540731 , 507436 , 493490 , 455126 , 544396 , 463248 , 458467 , 456550 , 479115 , 429863 , 470641 , 439325 , 495449 , 507349 , 483315 , 488282 , 505069 , 524254 , 470676 , 470389 , 555992 , 562961 , 452651 , 460752 , 469641 , 500978 , 504227 , 546947 , 565476 , 465828 , 526118 , 470064 );
Copy
5
2.40 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
389117
429863
435884
439325
452651
455126
456550
458467
460752
461837
463248
465828
465930
469641
470064
470389
470637
470641
470676
471972
472013
472873
475622
477630
479115
483315
484396
487316
488282
489575
493020
493153
493347
493490
495449
500144
500849
500978
502950
504227
504711
505069
507349
507436
508004
511696
511701
516262
522699
523175
523606
524254
525141
526118
526253
526344
528182
540731
543839
544396
546947
555992
560567
560588
562961
565476
565839
566938
570136
572125
572692
573044
574600
681736
]
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 (389117 , 429863 , 435884 , 439325 , 452651 , 455126 , 456550 , 458467 , 460752 , 461837 , 463248 , 465828 , 465930 , 469641 , 470064 , 470389 , 470637 , 470641 , 470676 , 471972 , 472013 , 472873 , 475622 , 477630 , 479115 , 483315 , 484396 , 487316 , 488282 , 489575 , 493020 , 493153 , 493347 , 493490 , 495449 , 500144 , 500849 , 500978 , 502950 , 504227 , 504711 , 505069 , 507349 , 507436 , 508004 , 511696 , 511701 , 516262 , 522699 , 523175 , 523606 , 524254 , 525141 , 526118 , 526253 , 526344 , 528182 , 540731 , 543839 , 544396 , 546947 , 555992 , 560567 , 560588 , 562961 , 565476 , 565839 , 566938 , 570136 , 572125 , 572692 , 573044 , 574600 , 681736 );
Copy
6
109.53 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
389117
429863
435884
439325
452651
455126
456550
458467
460752
461837
463248
465828
465930
469641
470064
470389
470637
470641
470676
471972
472013
472873
475622
477630
479115
483315
484396
487316
488282
489575
493020
493153
493347
493490
495449
500144
500849
500978
502950
504227
504711
505069
507349
507436
508004
511696
511701
516262
522699
523175
523606
524254
525141
526118
526253
526344
528182
540731
543839
544396
546947
555992
560567
560588
562961
565476
565839
566938
570136
572125
572692
573044
574600
681736
]
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 (389117 , 429863 , 435884 , 439325 , 452651 , 455126 , 456550 , 458467 , 460752 , 461837 , 463248 , 465828 , 465930 , 469641 , 470064 , 470389 , 470637 , 470641 , 470676 , 471972 , 472013 , 472873 , 475622 , 477630 , 479115 , 483315 , 484396 , 487316 , 488282 , 489575 , 493020 , 493153 , 493347 , 493490 , 495449 , 500144 , 500849 , 500978 , 502950 , 504227 , 504711 , 505069 , 507349 , 507436 , 508004 , 511696 , 511701 , 516262 , 522699 , 523175 , 523606 , 524254 , 525141 , 526118 , 526253 , 526344 , 528182 , 540731 , 543839 , 544396 , 546947 , 555992 , 560567 , 560588 , 562961 , 565476 , 565839 , 566938 , 570136 , 572125 , 572692 , 573044 , 574600 , 681736 );
Copy