Hi Chas.
I just want to say, that in my solution I have data in several databases and I query across all of them happily.

Jan

2011/3/13 Charles F. Munat <charles.munat@gmail.com>
Hello,

I'm building a Web-based application that tracks students in various schools. Much of the data is tree-structured, and, after numerous attempts, I've given up on using an RDBMS. It's a hammer and I need a wrench.

The schema for each school's data will be the same. Sitting above the schools is the "project" for which the application is being built.

The project needs to be able to query across multiple or all schools in order to run various analyses. So I want all the data in a single database, if possible.

But each school, I think, should be it's own "segment" of the database. That way, when a project manager logs in, he or she can look across all the segments, but when a school coordinator logs in, he or she accesses only the data for that school. I hope this makes sense.

I am not really very familiar with how the BaseX DB is organized. I don't want individual XML files (do I?). I just want a database filled with data. So how do "collections" work? How would I segment the database so that schools are separate whiles still providing easy cross-school access for project personnel?

I could just do something like this:

<project>
       <project-data/>
       <school id="1"/>
       <school id="2"/>
</project>

Where each school is simply an element under the root "project" element (with project data stashed away in a "project-data" element, or equivalent). But is there a better way?

What is the best practice here? I am running the DB unembedded.

Thanks!

Chas. Munat
Somewhere in South America
_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk



--
Ing. Jan Vlčinský
CAD programy
Slunečnicová 338/3, 734 01 Karviná Ráj, Czech Republic
tel: +420-597 602 024; mob: +420-608 979 040
skype: janvlcinsky; GoogleTalk: jan.vlcinsky@gmail.com
http://cz.linkedin.com/in/vlcinsky