Running queries on large data structure
John Machin
sjmachin at lexicon.net
Thu Aug 3 19:39:15 EDT 2006
Christoph Haas wrote:
> I assume that XQuery can't to weird queries like IP ranges, or can it?
That's twice now you've indicated that IP ranges are causing you some
problems. What's the big deal?
(a) If you don't have a specialised data type, just parse an IP address
into an unsigned 32-bit integer so that you can do greater/less-than
tests and masking easily
(b) handle IP range queries just like you'd do _any_ range query
Or am I missing something fundamental ?
Cheers,
John
More information about the Python-list
mailing list