shadowfox
shadowfox

Reputation: 581

efficient way for storing query results?

I have a requirement like running 'n' numbers of select queries at fixed time intervals and storing that data. These results need to be pulled later upon a client's demand.

My question is:

Please suggest any compression techniques to store these query results; also, is it possible to store only revisions of previous resultsets instead of storing the whole resultset?

note:

I am new to computer science and programming and also not very aware about storage or db designs.

Upvotes: 0

Views: 534

Answers (3)

ln2khanal
ln2khanal

Reputation: 977

I think you need to store the data in a database. SQL database can serve you the best. Regarding to storing the data in fixed interval of time, you just need to make effect of the change in the data set instead of storing the whole data again and again. I don't know what is your requirement and how much infrastructure you can afford. If you have such huge queries, I recommend you to work in Distributed System. Use NOSQL database for better performance.

Upvotes: 0

Matt Ball
Matt Ball

Reputation: 359956

It sounds like you should be building a data warehouse.

Upvotes: 2

kgautron
kgautron

Reputation: 8273

Performance-wise I suppose it would be better to have a table which purpose is to store the query results.

Upvotes: 0

Related Questions