28.06.2013 Views

Papers in PDF format

Papers in PDF format

Papers in PDF format

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

the user. The drawback of dynamic connections is that there is a (much) bigger server load due<br />

to preprocess<strong>in</strong>g.<br />

4.2 General Architecture<br />

For a basic WWW database <strong>in</strong>terface the follow<strong>in</strong>g steps are necessary:<br />

1. Generate the user <strong>in</strong>terface (HTML form)<br />

2. Receive user <strong>in</strong>put via HTTP (e.g. WWW server with an Common Gateway Interface (CGI)<br />

or application programm<strong>in</strong>g <strong>in</strong>terface (API))<br />

3. Analyze user <strong>in</strong>put, derive query, and pass it to the DB client<br />

4. Access the database (e.g. network client for a database or a server demon process)<br />

5. Generate HTML from the output and send it back to the user<br />

Figure 3 shows different ways to<br />

achieve this. The easiest way is<br />

us<strong>in</strong>g a static HTML form, process<strong>in</strong>g<br />

it with a CGI script, and<br />

us<strong>in</strong>g a network client of the<br />

database. Us<strong>in</strong>g the application<br />

program <strong>in</strong>terface (API) of the<br />

webserver <strong>in</strong>stead of the CGI<br />

speeds up the process<strong>in</strong>g, but is<br />

less portable.<br />

A little bit more sophisticated<br />

and faster is a database demon<br />

DB<br />

process that keeps the database<br />

DB-server<br />

open and waits for queries <strong>in</strong>stead<br />

of the network client. De- Figure 3: Different ways of database <strong>in</strong>tegration<br />

pend<strong>in</strong>g on the speed of the network<br />

connection and the size of the database, this may speed up queries by a factor of five or<br />

so. Another improvement is a HTTP <strong>in</strong>terface to the demon process thus offer<strong>in</strong>g a database<br />

that can be directly accessed from the browser. Our own experiments have shown this may<br />

aga<strong>in</strong> speed up queries by a factor of five or so, depend<strong>in</strong>g on the speed of the network connection<br />

to the Database-/Webserver.<br />

4.2.1 Forms <strong>in</strong>terface<br />

The forms <strong>in</strong>terface allows the user to formulate a query or other database operations us<strong>in</strong>g the<br />

follow<strong>in</strong>g HTML 2.0 elements [23]:<br />

• Input Field: INPUT<br />

• Text Field: INPUT TYPE=TEXT<br />

Allows for text <strong>in</strong>put.<br />

HTTP:x<br />

WWW-Browser<br />

HTTP:y<br />

• Password Field: INPUT TYPE=PASSWORD<br />

As above, except that the value is obscured as it is entered.<br />

-14-<br />

HTTP-Demon<br />

CGI<br />

DB-Client<br />

Proprietary:z<br />

DB-Demon<br />

ESQL<br />

WWW-server<br />

API

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!