Re: Can this be done better?

2012-03-07 Thread Cecil Westerhof
2012/3/7 Ryan How : > I think it is only a problem if you are having performance issues. In most > of my programs there is usually a much more efficient way of doing things, > but if it takes 5ms or 1ms it doesn't really make any difference compared to > everything else. I would only start optimisi

Re: Can this be done better?

2012-03-07 Thread Ryan How
I think it is only a problem if you are having performance issues. In most of my programs there is usually a much more efficient way of doing things, but if it takes 5ms or 1ms it doesn't really make any difference compared to everything else. I would only start optimising if you are having iss

Can this be done better?

2012-03-06 Thread Cecil Westerhof
I am using the following SQL code: CREATE TABLE container ( containerID UUID PRIMARY KEY, parentContainerId UUID, description VARCHAR(50) NOT NULL, FOREIGN KEY(parentContainerID) REFERENCES (containerID) ); INSERT INTO container (containerID, description) VALUES (random_UUID(