[sldev] SL Database purge
Thomas Shikami
thomas.shikami at online.de
Wed Apr 30 05:46:05 PDT 2008
Argent Stonecutter wrote:
> ... . The operations on the SL database should prevent explicit loops
> from happening, but they're also inferring references from the
> contents of some assets, such as scripts, and database corruption can
> create the damndest structures. So what do you do?
>
> Well, one common solution is to simply cut off the walk after a
> certain distance. So...
The other way would be to keep a list of assets already scanned and
another list of assets that are in use. The first pass would be to fill
the list of assets in use from inventory and sim database. Then there
will be as many passes as needed doing the following, search of assets
used that aren't scanned yet. Scan them through and fill the list of
assets in use. Add each scanned asset to the list of assets already
scanned. Repeat until the list of assets already scanned and the list of
assets in use match. With this algorithm, even repeats won't do any harm
and box in box in box in box is scanned to any arbitrary depth.
More information about the SLDev
mailing list