in reply to Re: In search of an efficient query abstractor
in thread In search of an efficient query abstractor
I should explain a little extra subtlety here. Suppose I have an SQL statement of the form
insert into foo (col1, col2, col3) values(1, 2, 3), (4, 5, 6), ......
Now assume there are a million sets of values there. I want them all mushed down to a single "values(N, N, N)".
This happens to me all the time in the real world. How fast is this going to be?
And then, when the parser is done with it, I still have to reassemble the thing into a fingerprint of the query... which will be a lot of special-case code. MySQL's grammar is nontrivial.
So I don't think this will be a fast or easy way to do what I want, although I appreciate the idea.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: In search of an efficient query abstractor
by CountZero (Bishop) on Dec 07, 2008 at 22:37 UTC |
In Section
Seekers of Perl Wisdom