- Jun 16, 2004
- 1,034
- 0
- 0
Hi guys,
Many thanks to those who've helped me in previous posts. One more for you. So you know this is all running on a Linux mySQL database on a Celeron server (Dell SC420) w/ 2 GB of RAM.
I've got a many-to-one relationship going using 3 dimensional data (x,y,z) to link two tables.
I see two options when trying to join the data -- one, create some sort of identifier field which concatenates x,y,z data (probably zero padded) and joins on that field. Given the data I'm using, I can't see using anything less than a BIGINT variable to hold that ID.
Otherwise, I can use some subqueries and WHERE tb1.x=tb2.x and tb1.y=tb2.y conditions to try and achieve the same result, but with messier SQL code.
After trying both, it seems like the oneID just causes the server to bog down -- although it seems to be a processor-issue rather than a problem of memory.
For what it's worth, the Many data field will have about 13.5 million records and the One field will have about 300K records.
I sorta know what I'm doing, but I know just enough to be dangerous -- so please don't hesitate offering obvious solutions.
Sorry if I'm being too vague, but it seems like if I post too much info, it's too hard for people to read. Happy to provide more details if necessary.
Thanks!
Many thanks to those who've helped me in previous posts. One more for you. So you know this is all running on a Linux mySQL database on a Celeron server (Dell SC420) w/ 2 GB of RAM.
I've got a many-to-one relationship going using 3 dimensional data (x,y,z) to link two tables.
I see two options when trying to join the data -- one, create some sort of identifier field which concatenates x,y,z data (probably zero padded) and joins on that field. Given the data I'm using, I can't see using anything less than a BIGINT variable to hold that ID.
Otherwise, I can use some subqueries and WHERE tb1.x=tb2.x and tb1.y=tb2.y conditions to try and achieve the same result, but with messier SQL code.
After trying both, it seems like the oneID just causes the server to bog down -- although it seems to be a processor-issue rather than a problem of memory.
For what it's worth, the Many data field will have about 13.5 million records and the One field will have about 300K records.
I sorta know what I'm doing, but I know just enough to be dangerous -- so please don't hesitate offering obvious solutions.
Sorry if I'm being too vague, but it seems like if I post too much info, it's too hard for people to read. Happy to provide more details if necessary.
Thanks!
