I want to improve search performance for a key (Postgresql 9.3).
in a table like this:
CREATE TABLE kvstore (
key varchar(128) PRIMARY KEY,
value text,
entry_date date,
expire_date date,
);
I have no idea how posgresql stores strings as keys, if i convert keys to hashes can i improve the search performance or is it already optimized by postgresql, Do you have suggestions for this kind of data structures? like using hstore or something else?