473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Do VIEWS use more resources?

bugboy
160 100+
Do views duplicate any data?

I have a large DB and am thinking of creating VIEWS for users that contain only the info they have access too so that they aren't querying the full DB every time. If i do this I'm wondering if the VIEWS will effectively multiply the required disk space and/or memory by the number of users logged in?

My users will be doing multiple sub searches within results... ie. each subsequent query's results will be a subset of the previous results.. are VIEWs good for this?
Oct 5 '07 #1
4 2268
pbmods
5,821 Expert 4TB
Heya, bugboy.

Views, in my opinion, aren't ready for primetime yet. They're not indexable, and the underlying query still has to be executed every time the data changes.

My advice would be to partition your table into smaller tables. It may require extra work on the PHP side, but it will help keep your table data manageable.
Oct 6 '07 #2
bugboy
160 100+
Thanks!

Would i classify my info into different categories (tables) so that i would only have to query one of them.. by somehow predetermining which table to search?
Oct 7 '07 #3
pbmods
5,821 Expert 4TB
Heya, bugboy.

Now that's the real trick, isn't it?

What kind of data would you be partitioning?
Oct 7 '07 #4
bugboy
160 100+
It's like a big dictionary... nothing new.. i have a table with a tens of millions of words 'w', and a table that will have a few hundred million definitions 'd'.. nothing big haha. Each definition is very short so theres not a huge amount to disk space required.... relatively.

The biggest problem is the foreign key table 's'.. i calculate that the relationships between the words and definitions will be in the billions. Maybe it's to ambitious for a normal database structure... but then people are doing things on this scale.

I don't need it to be this big right away... i'm thinking down the road, i don't want to get stuck with bad architecture and a slow expensive query system. If i were to build it simple now but scalable later that would be perfect. My goal is to understand how the architecture should change with growth so i don't get boxed in.

Thanks a billion! ...or four
Oct 8 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Mike N. | last post by:
Hello: I am new to T-SQL programing, and relativly new to SQL statements in general, although I have a good understanding of database theory. I'm a little confused as to the fundamental...
3
by: KemperR | last post by:
Hello Experts outhere, may be someone can tell me whats going wrong with my ADOX trial. I have an Access 2002 database with some tables and queries (views) The code listed below works well up...
224
by: VB6 User | last post by:
Hi all devies! Many (.NUT, .NOT or whatever), APIs, VB6, Views & Questions Your can not call APIs directly in .NET, only via P/Invoke. There are some things that cannot be done in...
2
by: dbuchanan52 | last post by:
Hello, I am building an application for Windows Forms using. I am new to SQL Server 'Views'. Are the following correct understanding of their use? 1.) I believe a view can be referenced in a...
28
by: mooreit | last post by:
The purpose for my questions is accessing these technologies from applications. I develop both applications and databases. Working with Microsoft C#.NET and Microsoft SQL Server 2000 Production and...
15
by: rod.weir | last post by:
Fellow database developers, I would like to draw on your experience with views. I have a database that includes many views. Sometimes, views contains other views, and those views in turn may...
33
by: Peter | last post by:
People are telling me it is bad to put select * from <atable> in a view. I better should list all fields of the table inside the definition of the view. I dont know exactly why but some...
5
by: Daniel Wetzler | last post by:
Hi Sqlserver experts, I use the SQL Server enterprise manager of MSSQL 2000 regularly. I'm often annoyed by the automatic blanking of the table views. If this happens then mostly with the hint...
7
by: Gary | last post by:
Hello guys! Bear with me, I am a newbie. She is the Data Warehouse manager. She has about 50 users to use the Oracle database from M$ Access via ODBC connection. All those users have only...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.