0

As i have stored posttext as datatype varchar(5000) in post table.

1) So when i query posttext using below sql query in MySQL 5.6 Community version,

select posttext from post where postId = 1;    

So does Whole posttext 5000 characters are stored in innodb buffer pool or innodb does not store this field value in buffer pool? because there are many posts in this table so if it stores whole value then innodb buffer pool might fill up early with uncertain unnecessary data.

2) Do i need to store it as text or varchar(5000) in terms of above question and in terms of performance?

Thanks,

user3406181
  • 91
  • 1
  • 10

0 Answers0