3
14.43 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
643935
591327
643047
631908
727057
703492
448521
455510
473986
391920
471000
443734
509495
522792
484854
509491
497588
447618
526277
575509
542059
545377
590623
453000
432310
453875
424695
467571
405961
430336
511021
492041
402506
442358
444692
456427
457781
542056
542062
543613
558984
569417
590505
634487
448307
478562
439912
385081
317166
516375
542049
605374
418453
516350
520448
622111
809372
462535
546669
599888
526948
457772
543407
566865
614262
472790
590651
476797
543419
597240
432751
603166
636322
527195
]
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 (643935 , 591327 , 643047 , 631908 , 727057 , 703492 , 448521 , 455510 , 473986 , 391920 , 471000 , 443734 , 509495 , 522792 , 484854 , 509491 , 497588 , 447618 , 526277 , 575509 , 542059 , 545377 , 590623 , 453000 , 432310 , 453875 , 424695 , 467571 , 405961 , 430336 , 511021 , 492041 , 402506 , 442358 , 444692 , 456427 , 457781 , 542056 , 542062 , 543613 , 558984 , 569417 , 590505 , 634487 , 448307 , 478562 , 439912 , 385081 , 317166 , 516375 , 542049 , 605374 , 418453 , 516350 , 520448 , 622111 , 809372 , 462535 , 546669 , 599888 , 526948 , 457772 , 543407 , 566865 , 614262 , 472790 , 590651 , 476797 , 543419 , 597240 , 432751 , 603166 , 636322 , 527195 );
Copy
4
4.02 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
317166
385081
391920
402506
405961
418453
424695
430336
432310
432751
439912
442358
443734
444692
447618
448307
448521
453000
453875
455510
456427
457772
457781
462535
467571
471000
472790
473986
476797
478562
484854
492041
497588
509491
509495
511021
516350
516375
520448
522792
526277
526948
527195
542049
542056
542059
542062
543407
543419
543613
545377
546669
558984
566865
569417
575509
590505
590623
590651
591327
597240
599888
603166
605374
614262
622111
631908
634487
636322
643047
643935
703492
727057
809372
]
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 (317166 , 385081 , 391920 , 402506 , 405961 , 418453 , 424695 , 430336 , 432310 , 432751 , 439912 , 442358 , 443734 , 444692 , 447618 , 448307 , 448521 , 453000 , 453875 , 455510 , 456427 , 457772 , 457781 , 462535 , 467571 , 471000 , 472790 , 473986 , 476797 , 478562 , 484854 , 492041 , 497588 , 509491 , 509495 , 511021 , 516350 , 516375 , 520448 , 522792 , 526277 , 526948 , 527195 , 542049 , 542056 , 542059 , 542062 , 543407 , 543419 , 543613 , 545377 , 546669 , 558984 , 566865 , 569417 , 575509 , 590505 , 590623 , 590651 , 591327 , 597240 , 599888 , 603166 , 605374 , 614262 , 622111 , 631908 , 634487 , 636322 , 643047 , 643935 , 703492 , 727057 , 809372 );
Copy
5
94.46 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
317166
385081
391920
402506
405961
418453
424695
430336
432310
432751
439912
442358
443734
444692
447618
448307
448521
453000
453875
455510
456427
457772
457781
462535
467571
471000
472790
473986
476797
478562
484854
492041
497588
509491
509495
511021
516350
516375
520448
522792
526277
526948
527195
542049
542056
542059
542062
543407
543419
543613
545377
546669
558984
566865
569417
575509
590505
590623
590651
591327
597240
599888
603166
605374
614262
622111
631908
634487
636322
643047
643935
703492
727057
809372
]
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 (317166 , 385081 , 391920 , 402506 , 405961 , 418453 , 424695 , 430336 , 432310 , 432751 , 439912 , 442358 , 443734 , 444692 , 447618 , 448307 , 448521 , 453000 , 453875 , 455510 , 456427 , 457772 , 457781 , 462535 , 467571 , 471000 , 472790 , 473986 , 476797 , 478562 , 484854 , 492041 , 497588 , 509491 , 509495 , 511021 , 516350 , 516375 , 520448 , 522792 , 526277 , 526948 , 527195 , 542049 , 542056 , 542059 , 542062 , 543407 , 543419 , 543613 , 545377 , 546669 , 558984 , 566865 , 569417 , 575509 , 590505 , 590623 , 590651 , 591327 , 597240 , 599888 , 603166 , 605374 , 614262 , 622111 , 631908 , 634487 , 636322 , 643047 , 643935 , 703492 , 727057 , 809372 );
Copy