473,407 Members | 2,359 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,407 software developers and data experts.

ReadOnly DB? - Improved Performance for Data Mart

We have a DataMart (Approx 10GB) that is updated in batch at night. Is
there a way that the database can be configured to be in a "Read Only"
mode during the day?
MS SQL offers this - improved performance as there is no locking of
tables, logging, etc. Thanks.

Nov 12 '05 #1
4 2153
Not aware of any benefits to making it 'read-only' for you here:
- your writes occur during the night, so they won't impact
queries during the day anyway
- selects just result in share locks
- there are other very easy ways to stop users from writing to
a database

Are you trying to eliminate logging of multi-step sql statements?

Anyway, you'll probably find better performance from
- modeling
- sql tuning
- storage layout for tempspace, indexes and storage
- memory layout for bufferpools and sort heaps
- server configuration for parallelism, etc

IBM has "redbooks" that you might want to check out for details on
these subjects.
ken

Nov 12 '05 #2

You normally enforce a Read Only Database through the use of
authorizations. You can create all of the users into a group that has
SELECT privileges only on the Database Tables.
Graham Martin
http://www-306.ibm.com/software/data/db2/migration/

Nov 12 '05 #3
You can check if Isolation Level change can help (setting to
Uncommitted Red).

Check

http://www.dbazine.com/db2/db2-disarticles/gulutzan6

"...
A transaction at the READ UNCOMMITTED isolation level is very weak: it
makes no locks and ignores others' locks.
...."

Dario

Nov 12 '05 #4
QUIESCE TABLESPACES FOR TABLE your_table SHARE
will prevent from writing to that tablespace/table.

QUIESCE TABLESPACES FOR TABLE your_table RESET
will remove quiesced state.

You can also use table level locking.

However if you are looking for performance I agree with previous posts
-- start from tuning your system (for "big" queries pay attention to
system temporary tablespace). Also, you can think about Automated
Summary Tables, MDC.

-- Artur Wronski

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Will | last post by:
On the subject of Data Warehouses, Data Cubes & OLAP…. I would like to speak frankly about Data Warehouses, Data Cubes and OLAP (on-line analytical processing). Has it dawned on anyone else...
3
by: Robert | last post by:
I am having performance issues on a SQL query in Access. My query is accessing and joining several tables (one very large one). The tables are linked ODBC. The client submits the query to the...
19
by: cody | last post by:
Iam wondering what the benefit of using const over static readonly is. static readonly is a runtime constant and can be set once in the initializer or the static ctor, whereas const is suffering...
11
by: Christof Nordiek | last post by:
Hi all, Can there be a performance difference, if i use readonly fields instead of constants? e.g.: const int n = 100; vs. static readonly int = 100;
5
by: fred | last post by:
With a Class is there any difference between a readonly property and function besides having to use Get/End Get. Are there any performance/resource advantages for either. Thanks Fred
3
by: kenfar | last post by:
I've got a UDF that is used on the publishing side of a data warehouse: when the data is headed out to a mart. It works fine for sets of a few thousand rows, but really slows for sets of a few...
4
by: power2005 | last post by:
Hi Experts I run into a problem I can't seem to be able to resolve or find the solution to. Basically I have a list of sample data as follow - Country Company ------- -------- US ...
2
by: yogeshbhandare | last post by:
What is Data Mart? How does it help the data retrival process in terms of speed ?
1
by: alisonfun | last post by:
I have a very strange db2 performance problem. I have a sql which join 5 tables and also have a predicate <>. By using cli, it runs about 7 hours to get 8736409 rows result. By using db2batch...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.