MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??
On Sun, 22 Mar 1998, Chris Gray wrote:
> [Ben Greear:]
>
> :The two things I'm pondering now are binary flat files (one per object,
> :a collection of objects?? I dunno) or a database.
>
> A binary form has the distinct advantage that it is relatively easy to
> replace a single entity in the file. With text files, variations in
> formatting of things like numbers make that harder. If you need to save
> more than one kind of thing in your file (fairly likely!), then you can:
>
> - have multiple files, one per type of entity
> [can be expensive in terms of file handles and space]
> - reserve portions of the file for arrays of the different entities
> [what happens if you overflow a portion, needing more space?]
> - set up means by which varying lengths and types of things can be
> interspersed in the file, and properly found and updated.
> [can get complicated]
>
> The third choice is pretty close to writing your own DB system.
Any hints and tips on this third choice? References? Web sites? (Good) Books?
--
Greg Munt, greg#uni-corn,demon.co.uk; http://www.uni-corn.demon.co.uk/ubiquity/
"Deliver yesterday, code today, think tomorrow."
- Thread context:
- Re: [MUD-Dev] Jukebox, (continued)
- Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??,
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA, Sun 22 Mar 1998, 18:21 GMT
- Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??,
Greg Munt greg#uni-corn,demon.co.uk, Sun 22 Mar 1998, 19:02 GMT
- Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??,
Matt Chatterley matt#mpc,dyn.ml.org, Sun 22 Mar 1998, 19:19 GMT
- World Persistence, flat files v/s DB v/s ??,
s001gmu s001gmu#nova,wright.edu, Mon 23 Mar 1998, 19:51 GMT
- Re: [MUD-Dev] World Persistence, flat files v/s DB v/s ??,
Vadim Tkachenko vt#freehold,crocodile.org, Wed 25 Mar 1998, 05:26 GMT
[ Other Periods
| Other mailing lists
| Search
]