Relative Content

Tag Archive for database

Design pattern for access to tree-like database in Java?

I’m developing a Roleplaying character viewer/manager programme for a locap LARP system. The Characters have access to skills that are layed out in a tree-like structure. There are a lot of skills, and potentially a lot per character.

Keeping “historical” migrations in Django-south

After a system has gone through many migrations, and evolved enough for a second version, does it make sense to keep the old migrations around? I mean, old versions will use them to upgrade to the new one, sure, but should a fresh install have its database go through all the “historical” changes before arriving at the current shape? My gut feeling is that a fresh install should create the database “as it is”, not go through every mistake that was made in the product lifecycle until reaching a stable condition.

Eager Loading Constraints

The thing is, eager loading some object with all of it’s associations reduces the queries made to the database, but the query time is greatly increased.
The question is: This increased query time in the end pays off the database not being hitted so often?

Should we ever delete data in a database?

I am new to databases and trying to understand the basic concepts. I have learned how to delete data in a database. But one of my friends told me that you should never delete data in a database. Rather, when its no longer needed, it’s better to simply mark it or flag it as ‘not in use’.