Hi all,
I am trying to store a large grid i.e 20480x10240. Think of this data as a picture, where each value represents a data.
I would like to store this data into a database and be able to query a smaller area within that gird, much like cropping that picture and only transfering that area back to the user. What is the most efficent way of doing that?
Here are my two options that I can think of:
1) Storing it into fields: rows, columns, and value. This way I can do a simple SQL query where rows is between y1, y2, and cols is between x1 and x2. This is the most trivial way of doing it, but it does have a major storage burden on the SQL server.
2) Storing using IDH: This will make the query string very long by saying between this and this value for every row.
Is there any other formats out there? I am thorn on which format to choose.
Thank you in advance.
I am trying to store a large grid i.e 20480x10240. Think of this data as a picture, where each value represents a data.
I would like to store this data into a database and be able to query a smaller area within that gird, much like cropping that picture and only transfering that area back to the user. What is the most efficent way of doing that?
Here are my two options that I can think of:
1) Storing it into fields: rows, columns, and value. This way I can do a simple SQL query where rows is between y1, y2, and cols is between x1 and x2. This is the most trivial way of doing it, but it does have a major storage burden on the SQL server.
2) Storing using IDH: This will make the query string very long by saying between this and this value for every row.
Is there any other formats out there? I am thorn on which format to choose.
Thank you in advance.