Hi
Not sure if this post is in the correct forum as it seems to cross admin / programming, so apologies in advance.
I currently have a huge table (28 million rows) with address information for all the UK. the columns contained in it are things like house number, street, town, county and POst code (bit like a zip code).
To try and increase query response time I am going to horizontally partition the table based on post code, so there will be a table for postal address starting with an A to E, F to J and so on. Each table will have its own filegroup on a seperate disk, so fairly standard design.
My problem is this - our web application needs to take in a post code from a customer, and from this postcode the agent will select the house address relating to that post code. e.g. one postcode maps to many houses.
Basically i dont know if i should have some kind of mapping table that points to one of the partitioned tables to return the list of houses or use some other methodology - the important thing is the speed of returning the houses on a street for the given postcode.
Any thoughts are appreciated.
regards,
MrPeds
Not sure if this post is in the correct forum as it seems to cross admin / programming, so apologies in advance.
I currently have a huge table (28 million rows) with address information for all the UK. the columns contained in it are things like house number, street, town, county and POst code (bit like a zip code).
To try and increase query response time I am going to horizontally partition the table based on post code, so there will be a table for postal address starting with an A to E, F to J and so on. Each table will have its own filegroup on a seperate disk, so fairly standard design.
My problem is this - our web application needs to take in a post code from a customer, and from this postcode the agent will select the house address relating to that post code. e.g. one postcode maps to many houses.
Basically i dont know if i should have some kind of mapping table that points to one of the partitioned tables to return the list of houses or use some other methodology - the important thing is the speed of returning the houses on a street for the given postcode.
Any thoughts are appreciated.
regards,
MrPeds