{"id":8951,"date":"2018-01-19T17:01:42","date_gmt":"2018-01-19T22:01:42","guid":{"rendered":"https:\/\/www.ezrasf.com\/wplog\/?p=8951"},"modified":"2018-03-01T16:14:34","modified_gmt":"2018-03-01T21:14:34","slug":"uri-in-a-database","status":"publish","type":"post","link":"https:\/\/www.ezrasf.com\/wplog\/2018\/01\/19\/uri-in-a-database\/","title":{"rendered":"URI in a Database"},"content":{"rendered":"<p>This vendor&#8217;s application has been a headache for me for over a year now. We are getting close to upgrading, but there are some issues. One is why data in the new version is missing. I finally got the vendor to give me a\u00c2\u00a0query in the new version which was enough for me to figure out how to find the same data in the old version.<\/p>\n<figure id=\"attachment_8952\" aria-describedby=\"caption-attachment-8952\" style=\"width: 500px\" class=\"wp-caption alignright\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"8952\" data-permalink=\"https:\/\/www.ezrasf.com\/wplog\/2018\/01\/19\/uri-in-a-database\/16686579989_02eba2c292\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.ezrasf.com\/wplog\/wp-content\/uploads\/2018\/01\/16686579989_02eba2c292.jpg?fit=500%2C500&amp;ssl=1\" data-orig-size=\"500,500\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"16686579989_02eba2c292\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;&lt;a href=&quot;https:\/\/www.flickr.com\/photos\/tomhilton\/16686579989\/&quot;&gt;Shrug by Tom Hilton&lt;\/a&gt;&lt;\/p&gt;\n\" data-large-file=\"https:\/\/i0.wp.com\/www.ezrasf.com\/wplog\/wp-content\/uploads\/2018\/01\/16686579989_02eba2c292.jpg?fit=500%2C500&amp;ssl=1\" class=\"alignnone size-full wp-image-8952\" src=\"https:\/\/i0.wp.com\/www.ezrasf.com\/wplog\/wp-content\/uploads\/2018\/01\/16686579989_02eba2c292.jpg?resize=500%2C500&#038;ssl=1\" alt=\"16686579989_02eba2c292\" width=\"500\" height=\"500\" srcset=\"https:\/\/i0.wp.com\/www.ezrasf.com\/wplog\/wp-content\/uploads\/2018\/01\/16686579989_02eba2c292.jpg?w=500&amp;ssl=1 500w, https:\/\/i0.wp.com\/www.ezrasf.com\/wplog\/wp-content\/uploads\/2018\/01\/16686579989_02eba2c292.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.ezrasf.com\/wplog\/wp-content\/uploads\/2018\/01\/16686579989_02eba2c292.jpg?resize=250%2C250&amp;ssl=1 250w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><figcaption id=\"caption-attachment-8952\" class=\"wp-caption-text\"><a href=\"https:\/\/www.flickr.com\/photos\/tomhilton\/16686579989\/\">Shrug by Tom Hilton<\/a><\/figcaption><\/figure>\n<p>Everything I check between the two databases is consistently the same across the systems. So, why are the user interfaces different? See image right.<\/p>\n<p>I have done a lot of querying now trying to gain some insight into the black box since the front line support workers are not getting me helpful information out of their &#8220;additional resources.&#8221; I&#8217;ve asked to talk to a DBA, but they do not respond to that part.<\/p>\n<p>Something hurts\u00c2\u00a0my brain is that every table&#8217;s primary key is name &#8220;uri.&#8221; Yes, everything is a <strong>Uniform Resource Indicator<\/strong>. (If everything is an\u00c2\u00a0uri, then effectively nothing is an\u00c2\u00a0uri.) But then when TableA needs to reference something from TableB, then it actually has a column that describes what it is. Except in this one case I am struggling to understand where the recordUri\u00c2\u00a0does not match the record table&#8217;s uri\u00c2\u00a0column.<\/p>\n<p>So what does it match? See image.<\/p>\n<p>An annotated schema would help out so much right now.<\/p>\n<p>My guess is a table moved and broke a customization.<\/p>\n<p>I suspect the choice of URI as an acronym is because of the HTTP protocol. For a web site address, one has the protocol in http:\/\/ and the full qualified domain name like ezrasf.com and everything starting with the next slash after is the URI. And that is what set me off to write this post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This vendor&#8217;s application has been a headache for me for over a year now. We are getting close to upgrading, but there are some issues. One is why data in the new version is missing. I finally got the vendor to give me a\u00c2\u00a0query in the new version which was enough for me to figure [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[153],"tags":[113],"class_list":["post-8951","post","type-post","status-publish","format-standard","hentry","category-database-oracle","tag-query"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1rUBW-2kn","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts\/8951","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/comments?post=8951"}],"version-history":[{"count":0,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts\/8951\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/media?parent=8951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/categories?post=8951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/tags?post=8951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}