Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 213207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:15:25+00:00 2026-05-11T18:15:25+00:00

I have a script that generates DDL scripts to define materialized views for a

  • 0

I have a script that generates DDL scripts to define materialized views for a normalized database. Some tables have columns like “owner” that point to a particular database user, which I can then create views for that will show only the rows of a table that the current database user created. Such views in some cases would be beneficial both from a security and convenience standpoint–for example, showing only one’s own multiple-choice quiz results.

The thing is, aside from a handful of tables, there are many tables where I could imagine someone asking for such a view, but can’t think of a concrete use case. However, I think that sometimes such general functionality can be useful, because I can’t always foresee all use cases.

My question is, how many of these personalized views should I bother automatically generating? For several hundred tables, this adds a good chunk of time to the building, testing, and benchmarking processes, automated though they are. Would you err on the side of extra functionality that may never be used, or on the side of having available only those views that have been asked for/that you know will be useful?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T18:15:25+00:00Added an answer on May 11, 2026 at 6:15 pm

    This is a good question to ask yourself — generality is (generally;-) a good thing, but as you observe overgeneralizing can throw you into a combinatorial explosion. Can you possibly arrange for the required bits of DDL to be generated “just in time” when a user tries to make use of it (of course keeping some “cache” of the bits that have already proved useful)?

    If that’s just unfeasible, then, considering the possibility for “potentially useful views” to grow exponentially in the number of tables and columns, I’d reluctantly pick the “make only what’s known to be useful/desired” strategy (and strive to make it very very easy for users to let me know when they need me to add something more…).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 109k
  • Answers 109k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer SQL server version, I did spoiled instead of unspoiled, this… May 11, 2026 at 9:23 pm
  • Editorial Team
    Editorial Team added an answer There is no way to enforce this restriction 100%. Options:… May 11, 2026 at 9:23 pm
  • Editorial Team
    Editorial Team added an answer Also, it's probably a good idea to make sure that… May 11, 2026 at 9:23 pm

Related Questions

I would like to confirm that the following analysis is correct: I am building
I am developing a website using SQL Server Express on my development machine. My
I encountered the following ddl in a pl/sql script this morning: create index genuser.idx$$_0bdd0011
I am working on a project that requires a number of icons generated from
I have a Ruby script that generates a UTF8 CSV file remotely in a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.