Question about database maintenance

Home Page › Forums › General Chat › Question about database maintenance

  • This topic has 11 replies, 5 voices, and was last updated 1 month ago by Keab.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #2192436
    Keab
    Participant
    Rank: Rank 4

    Hello, I have been culling my asset library, getting rid of a lot (a really BIG lot) of unused or lower quality items. All of them were manually installed and I have painfully uninstalled all of them the same way.

    Now, my problem is that when I search content in the database, those items keep appearing as 'broken' entries. Is there a way to get rid of them automatically? There are several options under 'database maintenance', but they are not self-explanatory enough (not for me, at least), and I wouldn't want to break anything.

    Thanks in advance,

    EDIT: using DAZ 4.23, in case it's relevant

    #2192446
    eelgoo
    Moderator
    Rank: Rank 7

    This probably doesn't help the current situation you have, but when I uninstall a product, I look at my saved Inst file which shows me exactly what & where everything relevant to that product is.
    I then delete each item manually. I have never had a ghosting issue like that since I developed my own library system as detailed in the Manual Install sticky. If I want to re-install I just copy & paste the Inst file back into the correct level of My Library.

    Quite often I think it can be quicker, easier & more robust to start a fresh remote library rather than try to fix a pre existing chaotic runtime. :0/

    #2192451
    Ethiopia
    Participant
    Rank: Rank-1

    I'm with @eelgoo here....well...not WITH, not really the way you're thinking. I AGREE with him.
    I've started from scratch several times over the two decades I've been playing with Poser and Studio. Having different runtimes would be the best way but that would be more work than I'm willing to put in. Having a messy database isn't always a bad thing since you'll rediscover lots of items you'd forgotten about while hunting for the item you really want to use.

    #2192458
    Keab
    Participant
    Rank: Rank 4

    I swear to God, I think I have carefully deleted every single installed file, that's why it's been so painful. I guess I'm wrong? I don't know. Surely, creating a new library from scratch following eelgoo's advices would be the way to go, but... good lord, that's a lot of work. I need some break at the very least right now. First, I'll see if I can live with this. Otherwise, I'll try to rescan the directories or something like that and if I break anything... well, back to square one.

    Thank you anyway!

    #2192460
    eelgoo
    Moderator
    Rank: Rank 7

    I'm not pretending it will be easy, but ultimately starting afresh with a remote My library will be quicker & less frustrating than trying to fix a chaotic one. :0/

    That is unless you can mentally blank the problem items. 😉

    #2192535
    sandeep
    Participant
    Rank: Rank-2

    Manual installation (simple unzipping) cannot affect your CMS database, and subsequent database searches. So the issue you described only implies that you may have used DIM/Connect or any other tools to install those products or the metadata was added later using tools like the Content Wizard, since you were able to use database search for those items. Database maintenance is generally used for backing up and restoring custom categories, custom metadata, tags etc which probably do not apply in your case.

    None of the database tools, except for the reset database option, provided by Daz are destructive i.e. cause removal of data. Afaik, even DIM or Connect does not remove product or item metadata from the CMS DB once a product is installed, but resetting can remove any custom database records such as custom categories. Upon proper uninstallation through DIM/Connect, it probably just disables the relationships at the database records so that the orphaned user facing item data no longer shows up in search results when using database based search.

    Resetting the database will probably not work in your case, because you never told DIM/Connect about the uninstallation, so the CMS still considers the product or items as installed.

    In your case, since you manually deleted the files from the filesystem, the database entries for the product and it's associated user facing items were not removed/disabled, assuming you had those installed via DIM or some other tools. So a database search for items would still fetch the metadata for the user facing files but their icons and links would be broken since you removed those files manually.

    The safest and easiest option would be to reinstall those products using DIM and again uninstall them through DIM only, and then verify the absence of those items in search results. You can try it for a sample product to see if it works. I don't have access to my PC so I can't verify this from my end.

    Also, afaik, DIM and Connect store the metadata of the same product independently, which can complicate this if you are unsure which method was used for installation in the first place.

    The other option would be to use an independent PostgreSQL DB client/browser and surgically query and modify/delete the unwanted rows. But that would require some familiarity of SQL and relational database concepts.

    #2192542
    sandeep
    Participant
    Rank: Rank-2

    Here's a discussion https://www.daz3d.com/forums/discussion/575591/broken-references-in-smart-content that can guide you further. Even though the discussion is in context of smart content, the underlying issue remains the same.

    #2192550
    yngvarr
    Participant
    Rank: Rank 4

    In order to clear broken links of deleted assets in Daz Studio, I navigate to Content Library -> Products and delete the products individually. Fortunately, locating them is simple as they are categorized alphabetically into folders. This process does not delete the actual asset files from the disk; it only wipes their metadata.

    #2192551
    Keab
    Participant
    Rank: Rank 4

    Sandeep, thank you very much for the trouble of writing such an elaborate answer. I will check the info you've provided but, I swear to you, 100% of my items have been manually installed.

    Again, thanks a lot.

    #2192552
    Keab
    Participant
    Rank: Rank 4

    Yngvarr, just saw your post after replying Sandeep. I didn't know I could do that. I think I have all my items together under Products--> "LOCAL USER", because the rest of the alphabetical categories are almost empty. I'm scanning "LOCAL USER" right now, but it is taking forever, as one would expect. I'll consider this option too. Thanks a lot!!

    EDIT: Just realized you two were talking about the same thing, lol. Thank you very much, both of you.

    #2192576
    sandeep
    Participant
    Rank: Rank-2

    If you have only used manual install, then the only other plausible explanation that I can think of justifying the presence of metadata in your CMS, is through the invocation of re-import metadata function of the database maintenance. That could have imported the metadata from the product's .DSX file present in Runtime/Support folder into the CMS.

    #2192593
    Keab
    Participant
    Rank: Rank 4

    @sandeep, you were right. Finally, I followed the solution posted all the end of this thread, which worked:

    https://www.daz3d.com/forums/discussion/comment/622535/

    1) Export user data
    2) Reset the database
    3) Re-Import metadata

    Thank you very much for your interest and your help on this subject! Have a small token of gratitude.

    Best regards,

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.

 

Post You Might Like