Hi list,
while debugging my application, I noticed that when I send a request to the
HTTP API of basex, the request is then sent by basex to itself via a localhost
connection. That is, the HTTP API part of basex sends a message to the BaseX
native API through TCP.
Now, I wonder, is this really necessary? After all, both reside in the same
process, so going through the OS feels a bit wasteful here. I noticed that I
can change this behaviour if I pass the "-l" flag to basexhttp ("local mode"),
so the code to directly use the in-process DB obviously exists. I wonder why
it can only be used in the local mode which entirely disables the "native"
BaseX API?
Kind regards,
Ralf