Comment 1 for bug 1192043

Revision history for this message
Chris Hillery (ceejatec) wrote :

One way to do this would be to hash the module/schema URI and use that hash to look up the correct file on disk. That would actually reduce the number of lookups currently done, since we currently attempt to file the file with a .xq extension and then again without the .xq extension.

We would not need to hash whether the module/schema was JSONiq or XQuery, unless for some bizarre reason we need to have an XQuery module and a JSONiq module with the same URI (hopefully not!). However, we would need to hash whether the URI was a module or schema (or "something else", for fetch()), because we do have schemas and modules with shared URIs.

It's not completely clear how this would play with the module-versioning mechanism.