473,397 Members | 1,949 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,397 software developers and data experts.

how to move the data ,because of the partition table

i am so sorry! the english is not my mother language.
but i need everyone help actually.

it takes 16 seconds to query the this sql
SELECT count(*) FROM Sold_Listing_V as slv WHERE slv.Is_Paid ='1'


so , we ask for help

the sold_listing_v is a View ,

CREATE OR REPLACE VIEW sold_listing_v AS
SELECT item_t.item_ebay_id, userinfo.user_ebay_id, item_t.list_type, item_t.title AS item_title, item_t.is_second_chance, item_t.sub_title, item_t.duration, item_t.start_time, item_t.quantity, item_t.header_pic_url, item_t.end_time, item_t.parent_item_ebay_id, item_t.bin_price, item_t.start_price, item_t.reserve_price, item_t.post_site, wd_t.winner_detail_id, wd_t.is_shipping_notification, wd_t.quantity AS winner_quantity, wd_t.transaction_id, wd_t.winner_ebay_id, wd_t.is_paid, wd_t.left_feedback_score, wd_t.received_feedback_score, wd_t.is_invoice, wd_t.is_contact, item_t.counter_style, wd_t.is_shipped, wd_t.winning_price, bidder_t.bidder_ebay_id, bidder_t.email, bidder_t.shipping_address, bidder_t.feedback_score, userinfo.user_ebay_info_id, userinfo.user_id, wd_t.quantity AS wdquantity, odt.order_id, odt.order_detail_id, note.note_content
FROM winner_detail_t wd_t
LEFT JOIN item_t ON item_t.item_ebay_id::text = wd_t.item_ebay_id::text
LEFT JOIN transaction_note_t note ON note.winner_detail_id = wd_t.winner_detail_id
LEFT JOIN user_ebay_info userinfo ON userinfo.user_ebay_info_id = item_t.user_ebay_info_id
LEFT JOIN bidder_t ON bidder_t.bidder_ebay_id::text = wd_t.winner_ebay_id::text
LEFT JOIN order_detail_t odt ON odt.winner_detail_id = wd_t.winner_detail_id;



the record number of the item_t , winner_detail_t is very large.

so ,we decided to create partition table .

which steps should we do take ?

1.
because these tables have constraint keys ,they reference each other.
2.
how should we to move the data in these tables , move these data from parent tables to

sub tables .

3.
if the step 1, and step 2 was completed scuessfully ,
but the view sold_listing_v , may be not right ,because of the patition tables.

how should we change this sql to create a view
Sep 11 '07 #1
2 3086
can anyone help me ?
Sep 14 '07 #2
please help me .
can anyone help me?
Sep 20 '07 #3

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

Similar topics

0
by: sandeep G | last post by:
I've a table which has a number & a blob column, both of which are NOT NULL type. This table is composite partitioned using range & hash on the same column. Each partition is sub partitioned into...
1
by: elpico | last post by:
Hi there, I've only recently started a project using sql server 2000 for the first time. One of the considerations we have to take is that we need to continuously age/purge data from a couple of...
1
by: Cedric | last post by:
We have a table in db2 that has about 40 million rows added to it daily and want to keep a rolling period of 180 days worth of data on the table. We want to remove either one day or a few days...
1
by: simon | last post by:
Hi Hopefully someone could point me in the right direction on this one. INFRASTRUCTURE DB2 v7 on MVS OS390 SCENARIO We are currently loading large volumes of data (eg 20MM rows) per day...
1
by: rajanbabu23 | last post by:
dear friends, If i insert a row into table SALES ...If created_dt , Jan or Feb or Mar ...it will store separate partition...I tried the below script ..it's was not working., Script : CREATE...
3
by: nbajrach | last post by:
how to partition on a table if table already exits without any partition. This is what i tried but gave me error SQL> alter table sip add partition by range(si_id) 2 partition p1_si...
0
debasisdas
by: debasisdas | last post by:
SAMPLE CODE TO CREATE SUB PARTITIONS ======================================= RANGE-HASH-9i ------------------------- CREATE TABLE SUBPART ( ID NUMBER(10) PRIMARY KEY, NAME VARCHAR2(20) )
0
debasisdas
by: debasisdas | last post by:
USING PARTITION =================== PARTITION BY RANGE-as per Oracle 8 -------------------------------------- CREATE TABLE RANGEPART ( ID NUMBER(2) PRIMARY KEY, NAME VARCHAR2(20) )
10
by: nflacco | last post by:
I'm tinkering around with a data collection system, and have come up with a very hackish way to store my data- for reference, I'm anticipating collecting at least 100 million different dataId...
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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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,...
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.