{"id":2187,"date":"2014-08-26T08:58:21","date_gmt":"2014-08-26T14:58:21","guid":{"rendered":"http:\/\/blog.rootsmagic.com\/?p=2187"},"modified":"2014-08-26T08:58:21","modified_gmt":"2014-08-26T14:58:21","slug":"tip-keep-your-file-in-shape-with-database-tools","status":"publish","type":"post","link":"http:\/\/blog.rootsmagic.com\/?p=2187","title":{"rendered":"Tip: Keep Your File in Shape with Database Tools"},"content":{"rendered":"<p style=\"text-align: center;\"><a href=\"http:\/\/blog.rootsmagic.com\/wp-content\/uploads\/2014\/08\/DatabaseTools.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-2190\" src=\"http:\/\/blog.rootsmagic.com\/wp-content\/uploads\/2014\/08\/DatabaseTools-1024x698.jpg\" alt=\"Database Tools\" width=\"410\" height=\"279\" srcset=\"http:\/\/blog.rootsmagic.com\/wp-content\/uploads\/2014\/08\/DatabaseTools-1024x698.jpg 1024w, http:\/\/blog.rootsmagic.com\/wp-content\/uploads\/2014\/08\/DatabaseTools-300x204.jpg 300w\" sizes=\"(max-width: 410px) 100vw, 410px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">Occasionally things break. \u00a0And when they do, we break out the tools to fix them. \u00a0Sometimes we even use tools preemptively to keep things from breaking later. \u00a0Databases are no different, and RootsMagic provides database tools to check the integrity of your database, or even fix issues like &#8220;phantom children&#8221; in your database. \u00a0To open the Database Tools, select <strong>File &gt; Database tools<\/strong> from the menu.<\/p>\n<p style=\"text-align: left;\"><a href=\"http:\/\/blog.rootsmagic.com\/wp-content\/uploads\/2014\/08\/2014-08-25_15-31-33.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2195\" src=\"http:\/\/blog.rootsmagic.com\/wp-content\/uploads\/2014\/08\/2014-08-25_15-31-33-300x197.jpg\" alt=\"2014-08-25_15-31-33\" width=\"300\" height=\"197\" srcset=\"http:\/\/blog.rootsmagic.com\/wp-content\/uploads\/2014\/08\/2014-08-25_15-31-33-300x197.jpg 300w, http:\/\/blog.rootsmagic.com\/wp-content\/uploads\/2014\/08\/2014-08-25_15-31-33.jpg 672w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">The Database Tools screen is very simple, with 4 commands to choose from.<\/p>\n<p style=\"text-align: left;\"><a href=\"http:\/\/blog.rootsmagic.com\/wp-content\/uploads\/2014\/08\/2014-08-25_15-32-36.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-2196\" src=\"http:\/\/blog.rootsmagic.com\/wp-content\/uploads\/2014\/08\/2014-08-25_15-32-36-300x264.jpg\" alt=\"2014-08-25_15-32-36\" width=\"300\" height=\"264\" srcset=\"http:\/\/blog.rootsmagic.com\/wp-content\/uploads\/2014\/08\/2014-08-25_15-32-36-300x264.jpg 300w, http:\/\/blog.rootsmagic.com\/wp-content\/uploads\/2014\/08\/2014-08-25_15-32-36.jpg 354w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">Each of the 4 commands simply performs the command and then pops up a status message (which may be no more than a simple &#8220;OK&#8221;).<\/p>\n<h3 style=\"text-align: left;\">Test Database Integrity<\/h3>\n<p style=\"text-align: left;\">This command analyzes your RootsMagic file to check if there are any problems with the database structure itself. \u00a0These are not problems with data (like a person being born before their father), but are corruption within the data structure itself. \u00a0This type of corruption is rare, but it is important to check for it occasionally.<\/p>\n<p style=\"text-align: left;\">When this command finishes running it will either just display &#8220;OK&#8221; (which is what you want), or it may display a list of any corruption in the file. \u00a0Sometimes this corruption can be fixed by running one of the other database tools (like Rebuild Indexes), but sometimes the only recourse is to restore a backup.<\/p>\n<p style=\"text-align: left;\">You can run this command when you open your database to make sure there is no corruption before you start entering new information, or you can run it before creating a backup to make sure your database is good to go before backing it up.<\/p>\n<h3 style=\"text-align: left;\">Rebuild Indexes<\/h3>\n<p style=\"text-align: left;\">Your RootsMagic file contains two things&#8230; data and indexes. \u00a0The data is what you actually type in (names, dates, places, notes, etc), while the indexes are what the RootsMagic database engine creates so that it can search for and find that data faster. \u00a0This command rebuilds those indexes. \u00a0Like any of the database tools, you can run this command anytime without worry, but it can be most useful if the Test Integrity check comes up with index errors.<\/p>\n<h3 style=\"text-align: left;\">Clean Phantom Records<\/h3>\n<p style=\"text-align: left;\">This is probably the most useful of the database tools, or at least the one that you can see its effects. \u00a0Occasionally your database can pick up what we call &#8220;phantom records&#8221;. \u00a0These are unwanted pieces of information (sometimes blank) that appear in your database, but you are unable to remove them using the normal RootsMagic features.<\/p>\n<p style=\"text-align: left;\">For example, you may find a family with a &#8220;phantom child&#8221;&#8230; a blank row in the child list on the family view which you can&#8217;t unlink or delete using the regular Edit &gt; Unlink or Edit &gt; Delete commands.<\/p>\n<p style=\"text-align: left;\">This command will search your file for all kinds of phantom records and will remove them for you. \u00a0Again, it doesn&#8217;t hurt to run this feature even if you haven&#8217;t run across any phantom records yet.<\/p>\n<h3 style=\"text-align: left;\">Compact Database<\/h3>\n<p style=\"text-align: left;\">When you delete a person or other item in RootsMagic, the program simply marks the record as deleted, but doesn&#8217;t free up the space the record was using. \u00a0Normally this isn&#8217;t a real problem, but if you are deleting a lot of records in RootsMagic, this command will reclaim that space and reduce the size of your RootsMagic file.<\/p>\n<h3 style=\"text-align: left;\">Database Tools in Action<\/h3>\n<p style=\"text-align: left;\">Here is a short video we created showing the database tools in action.<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/FLc3bTFVtPs\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p style=\"text-align: left;\">\n","protected":false},"excerpt":{"rendered":"<p>Occasionally things break. \u00a0And when they do, we break out the tools to fix them. \u00a0Sometimes we even use tools preemptively to keep things from breaking later. \u00a0Databases are no different, and RootsMagic provides database tools to check the integrity of your database, or even fix issues like &#8220;phantom children&#8221; in your database. \u00a0To open [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[40,5,32],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.rootsmagic.com\/index.php?rest_route=\/wp\/v2\/posts\/2187"}],"collection":[{"href":"http:\/\/blog.rootsmagic.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.rootsmagic.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.rootsmagic.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.rootsmagic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2187"}],"version-history":[{"count":13,"href":"http:\/\/blog.rootsmagic.com\/index.php?rest_route=\/wp\/v2\/posts\/2187\/revisions"}],"predecessor-version":[{"id":2206,"href":"http:\/\/blog.rootsmagic.com\/index.php?rest_route=\/wp\/v2\/posts\/2187\/revisions\/2206"}],"wp:attachment":[{"href":"http:\/\/blog.rootsmagic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.rootsmagic.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2187"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.rootsmagic.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}