René's URL Explorer Experiment


Title: Improve performance of utPLSQL cache · Issue #778 · utPLSQL/utPLSQL · GitHub

Open Graph Title: Improve performance of utPLSQL cache · Issue #778 · utPLSQL/utPLSQL

X Title: Improve performance of utPLSQL cache · Issue #778 · utPLSQL/utPLSQL

Description: Background Currently, utPLSQL treats all users the same way, regardless of their privileges. This means, that we always need to check what objects are visible to user and we assume minimal privileges when scanning for annotations. The on...

Open Graph Description: Background Currently, utPLSQL treats all users the same way, regardless of their privileges. This means, that we always need to check what objects are visible to user and we assume minimal privileg...

X Description: Background Currently, utPLSQL treats all users the same way, regardless of their privileges. This means, that we always need to check what objects are visible to user and we assume minimal privileg...

Opengraph URL: https://github.com/utPLSQL/utPLSQL/issues/778

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve performance of utPLSQL cache","articleBody":"# Background\r\nCurrently, utPLSQL treats all users the same way, regardless of their privileges.\r\nThis means, that we always need to check what objects are visible to user and we assume minimal privileges when scanning for annotations.\r\nThe only performance boost we get is when user has access to `dba_objects` and `dba_source`.\r\nFramework however does not alter any logic based on user privileges to simplify scanning or boost performance by any means.\r\n\r\nThe slowest part of annotation parsing is retrieval of source code from data dictionary.\r\nDespite cache introduced in version 3.0.4 (#492), we still need to check for cache validity and re-scan changed objects.\r\nThe current solution is better than no cache at all but still far from perfect.\r\n\r\n# Analysis\r\nThere are 3 possible scenarios:\r\n1. User doesn't have any elevated privs on schema containing test pacakges\r\n     - utPSLQL cannot cleanup cache for schema, as cache might contain objects not accessible to user and those objects would get deleted from cache\r\n     - utPSLQL needs to join to all_source when retrieving suites (or skip suites not accessible to user), as cache might contain objects not accessible to user and those would fail to execute on missing privileges\r\n2. User can execute all procedures in schema (owner or has execute any procedure)\r\n     - utPLSQL can cleanup cache for schema, as user can see all packages\r\n     - utPLSQL can retrieve all pacakges from cache and skip join to all_source when retrieving suites as user can see execute all packages in schema\r\n3. User can access dba_source & dba_objects\r\n     - utPLSQL can cleanup cache for schema, as user can see all packages\r\n     - utPLSQL needs to join to all_source when retrieving suites (or skip suites not accessible to user), as cache might contain objects not accessible to user and those would fail to execute on missing privileges\r\n\r\n**To summarize**\r\nIf user owns the schema, or user has execute any procedure privilege then.\r\n1. When scanning - we see whole schema packages\r\n2. When scanning - we can detect dropped packages safely (as we see all packages, not only those granted) and so we can remove those from cache\r\n3. No need to join with all_objects - we can skip the join.\r\n\r\n# Cache solution\r\n\r\nCache will return only data for annotated objects / suites that are visible to user invoking utPLSQL.\r\nCache will be cleaned up from dropped packages when possible (when invoking user can see all packages in schema)\r\n\r\n# Details\r\n\r\n- If user can access all code in schema:\r\n    - Sources are scanned by last modified date > last full scan date\r\n    - Cache is populated with scanned source\r\n    - Cache is purged by deleting objects that no longer existing\r\n    - Cache full scan date is updated for schema\r\n    - Data from cache is retrieved without joining with all objects\r\n- If user has access to DBA source and DBA objects but cannot access all code in schema \r\n    - Sources are scanned by last modified date > last full scan date\r\n    - Cache is populated with scanned source\r\n    - Cache is purged by deleting objects that no longer existing\r\n    - Cache full scan date is updated for schema\r\n    - Data from cache is retrieved by joining with all objects\r\n- If user cannot access DBA source and cannot access all code in schema \r\n    - Sources are scanned by last modified date > last full scan date\r\n    - Cache is populated with scanned source\r\n    - Data from cache is retrieved by joining with all objects\r\n\r\nRelated to: #757 \r\n\r\n","author":{"url":"https://github.com/jgebal","@type":"Person","name":"jgebal"},"datePublished":"2018-11-07T23:11:00Z","url":"https://github.com/utPLSQL/utPLSQL/issues/778"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c2f36ab1-d0b5-8529-0524-28a9e7180950
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE9DA:2F3E36:376D41:4C3488:6B04BCBF
html-safe-nonce928cf6f2b9f35dd7d1a22f47cd7499089e91d72b3ad6ef97556057623b54960e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOURBOjJGM0UzNjozNzZENDE6NEMzNDg4OjZCMDRCQ0JGIiwidmlzaXRvcl9pZCI6Ijc0NjI1OTgyNDM3MzA2MzU5NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace217bcc7d572010ed6897411cb1bf57532d2653eafc98383dcbf122ab7d99386
hovercard-subject-tagissue:378509367
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/utPLSQL/utPLSQL/778/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e9a5c90127e3c93ebfe5d1ecc2ac49d57f867154ffa75a7ba394af92516880ca/utPLSQL/utPLSQL/issues/778
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e9a5c90127e3c93ebfe5d1ecc2ac49d57f867154ffa75a7ba394af92516880ca/utPLSQL/utPLSQL/issues/778
og:image:altBackground Currently, utPLSQL treats all users the same way, regardless of their privileges. This means, that we always need to check what objects are visible to user and we assume minimal privileg...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejgebal
hostnamegithub.com
expected-hostnamegithub.com
None85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4
turbo-cache-controlno-preview
go-importgithub.com/utPLSQL/utPLSQL git https://github.com/utPLSQL/utPLSQL.git
octolytics-dimension-user_id15661281
octolytics-dimension-user_loginutPLSQL
octolytics-dimension-repository_id50728220
octolytics-dimension-repository_nwoutPLSQL/utPLSQL
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id50728220
octolytics-dimension-repository_network_root_nwoutPLSQL/utPLSQL
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/utPLSQL/utPLSQL/issues/778#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FutPLSQL%2FutPLSQL%2Fissues%2F778
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FutPLSQL%2FutPLSQL%2Fissues%2F778
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=utPLSQL%2FutPLSQL
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/778
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/778
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/778
utPLSQLhttps://github.com/utPLSQL
utPLSQLhttps://github.com/utPLSQL/utPLSQL
Codehttps://github.com/utPLSQL/utPLSQL
Issues13 (13)https://github.com/utPLSQL/utPLSQL/issues
Pull requests1 (1)https://github.com/utPLSQL/utPLSQL/pulls
Discussionshttps://github.com/utPLSQL/utPLSQL/discussions
Actionshttps://github.com/utPLSQL/utPLSQL/actions
Projectshttps://github.com/utPLSQL/utPLSQL/projects
Security and qualityhttps://github.com/utPLSQL/utPLSQL/security
Insightshttps://github.com/utPLSQL/utPLSQL/insights
https://github.com/utPLSQL/utPLSQL
New issuehttps://github.com/login?return_to=https://github.com/utPLSQL/utPLSQL/issues/778
New issuehttps://github.com/login?return_to=https://github.com/utPLSQL/utPLSQL/issues/778
#783https://github.com/utPLSQL/utPLSQL/pull/783
Improve performance of utPLSQL cachehttps://github.com/utPLSQL/utPLSQL/issues/778#top
#783https://github.com/utPLSQL/utPLSQL/pull/783
https://github.com/jgebal
enhancementhttps://github.com/utPLSQL/utPLSQL/issues?q=state%3Aopen%20label%3A%22enhancement%22
v3.1.3https://github.com/utPLSQL/utPLSQL/milestone/10
https://github.com/jgebal
jgebalhttps://github.com/jgebal
on Nov 7, 2018https://github.com/utPLSQL/utPLSQL/issues/778#issue-378509367
#492https://github.com/utPLSQL/utPLSQL/pull/492
#757https://github.com/utPLSQL/utPLSQL/issues/757
jgebalhttps://github.com/jgebal
enhancementhttps://github.com/utPLSQL/utPLSQL/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Nov 7, 2018https://github.com/utPLSQL/utPLSQL/issues/778#event-1952979375
jgebalhttps://github.com/jgebal
on Nov 7, 2018https://github.com/utPLSQL/utPLSQL/issues/778#event-1952979383
jgebalhttps://github.com/jgebal
v3.1.3https://github.com/utPLSQL/utPLSQL/milestone/10
on Nov 17, 2018https://github.com/utPLSQL/utPLSQL/issues/778#event-1972498841
jgebalhttps://github.com/jgebal
completedhttps://github.com/utPLSQL/utPLSQL/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#783https://github.com/utPLSQL/utPLSQL/pull/783
on Nov 18, 2018https://github.com/utPLSQL/utPLSQL/issues/778#event-1973400116
Sign up for freehttps://github.com/signup?return_to=https://github.com/utPLSQL/utPLSQL/issues/778
Sign in to commenthttps://github.com/login?return_to=https://github.com/utPLSQL/utPLSQL/issues/778
jgebalhttps://github.com/jgebal
enhancementhttps://github.com/utPLSQL/utPLSQL/issues?q=state%3Aopen%20label%3A%22enhancement%22
v3.1.3https://github.com/utPLSQL/utPLSQL/milestone/10
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.