Sven Rautenberg: DBMSe -> prevayler

Beitrag lesen

Moin!

Was ist E.E. von
 http://www.prevayler.org/wiki.jsp
zu halten?

Zitat aus der "skeptical FAQ":
http://www.prevayler.org/wiki.jsp?topic=PrevalenceSkepticalFAQ
---schnipp---
Do you mean I can simply have my objects in RAM and forget all that database hassle?
That's right.

Are you crazy? What if there's a system crash?
To avoid losing data, every night, or in any reasonable period, your system server saves a snapshot of all business objects to a file using plain object serialization.
---schnapp---

Genau das tut das Forum derzeit mit den Postings.

---schnipp---
What about the changes occurred since the last snapshot was taken? Won't the system lose those in a crash?
No. All commands received from the system's clients are converted into serializable objects by the server. Before being applied to the business objects, each command is serialized and written to a log file. During crash recovery, first, the system retrieves its last saved state from the snapshot file. Then, it reads the commands from the log files created since the snapshot was taken. These commands are simply applied to the business objects exactly as if they had just come from the system's clients. The system is then back in the state it was just before the crash and is ready to run.
---schnapp---

Und daran arbeitet CK mindestens gedanklich, wenn nicht sogar schon codierend.

Und was die auch von dir aufgeworfene Frage angeht, ob nicht eine Datenbank "besser" wäre: Die Aussage der von dir verlinkten Seite ist irgendwie ziemlich eindeutig:
---schnipp---
Performance

Queries with Prevayler are more than 9000 times faster than querying Oracle through JDBC.
Queries with Prevayler are more than 3000 times faster than querying MySQL through JDBC.
---schnapp---

Und genau das was der Grund, für das Forum eben gerade KEINE Datenbank zu verwenden. Das mag auf der aktuellen Hardware vielleicht nicht mehr so entscheidend sein, aber auf dem alten Server war es definitiv entscheidend.

- Sven Rautenberg