Hi all,
I was given a task to create a houseHolding logic under a table that
have millions records.
first let me explain what is a house holding:
let's say I have 2 records that have the same phone number, that mean
that both records are under the same household, but this can get more
complicated
this article explain it http://www.teradata.com/t/page/115924/index.html
if anyone worked with household he knows that you need to scan the
table many time to get all the house holds, I used a dts to do it.
I tested the dts on 11 records like the article did and that work
great, but once I went to million records each loop is taking me 2 hour
or so....a and I have no idea how how many loops I will have to do.
if anyone out there worked with household queries and used sql, your
imput would help me allot
thanks. 3 2707
Hi
I assume there is an index on this column (or a covering index on the ones
you are using)? Have you checked the query plan to see if other indexing is
needed, or have passed it through the index tuning wizard?
John
<rp*****@gmail. comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
Hi all,
I was given a task to create a houseHolding logic under a table that
have millions records.
first let me explain what is a house holding:
let's say I have 2 records that have the same phone number, that mean
that both records are under the same household, but this can get more
complicated
this article explain it http://www.teradata.com/t/page/115924/index.html
if anyone worked with household he knows that you need to scan the
table many time to get all the house holds, I used a dts to do it.
I tested the dts on 11 records like the article did and that work
great, but once I went to million records each loop is taking me 2 hour
or so....a and I have no idea how how many loops I will have to do.
if anyone out there worked with household queries and used sql, your
imput would help me allot
thanks.
Hi John,
Thanks for your replay, but yes I push data to the table with no index
in order to make the insert faster and then I created Indexes on all
the fields.
the dts is a process of 4 queries that pump data to 4 tables, I start
with table called Household2 and process it all the way to table Chain4
(view article). and I redo the process by moving the results I got in
table chain4 back to Household2 table and rerun the whole thing until
both table are the same (household2 and chain4)
if you test this on a small number of records (say 20) it would take
seconds but for 2 million well that is still running, and I have no
idea when it would end.
Now that process take 2 hours for one scan, but you have to re do the
same process until you don't find anymore households...so far I running
it for 40 hours and it did about 19 loops on the 4
I will look into index tuning wizard, I never heard of it.
can you give me more info about it?
John Bell wrote:
Hi
I assume there is an index on this column (or a covering index on the ones
you are using)? Have you checked the query plan to see if other indexing is
needed, or have passed it through the index tuning wizard?
John
<rp*****@gmail. comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
Hi all,
I was given a task to create a houseHolding logic under a table that
have millions records.
first let me explain what is a house holding:
let's say I have 2 records that have the same phone number, that mean
that both records are under the same household, but this can get more
complicated
this article explain it http://www.teradata.com/t/page/115924/index.html
if anyone worked with household he knows that you need to scan the
table many time to get all the house holds, I used a dts to do it.
I tested the dts on 11 records like the article did and that work
great, but once I went to million records each loop is taking me 2 hour
or so....a and I have no idea how how many loops I will have to do.
if anyone out there worked with household queries and used sql, your
imput would help me allot
thanks.
Hi
Maintaining indexes will slow down inserts, but as your process is also
doing alot of reads it could be justify to either re-create the index after
loading data and before sorting, or leaving it there.
If you want to post the queries and DDL (see http://www.aspfaq.com/etiquette.asp?id=5006 on how to do this) someone may
be able to see a way to improve the matching.
John
<rp*****@gmail. comwrote in message
news:11******** ************@i3 g2000cwc.google groups.com...
Hi John,
Thanks for your replay, but yes I push data to the table with no index
in order to make the insert faster and then I created Indexes on all
the fields.
the dts is a process of 4 queries that pump data to 4 tables, I start
with table called Household2 and process it all the way to table Chain4
(view article). and I redo the process by moving the results I got in
table chain4 back to Household2 table and rerun the whole thing until
both table are the same (household2 and chain4)
if you test this on a small number of records (say 20) it would take
seconds but for 2 million well that is still running, and I have no
idea when it would end.
Now that process take 2 hours for one scan, but you have to re do the
same process until you don't find anymore households...so far I running
it for 40 hours and it did about 19 loops on the 4
I will look into index tuning wizard, I never heard of it.
can you give me more info about it?
John Bell wrote:
>Hi
I assume there is an index on this column (or a covering index on the ones you are using)? Have you checked the query plan to see if other indexing is needed, or have passed it through the index tuning wizard?
John
<rp*****@gmail .comwrote in message news:11******* *************** @p79g2000cwp.go oglegroups.com. ..
Hi all,
I was given a task to create a houseHolding logic under a table that
have millions records.
first let me explain what is a house holding:
let's say I have 2 records that have the same phone number, that mean
that both records are under the same household, but this can get more
complicated
this article explain it http://www.teradata.com/t/page/115924/index.html
if anyone worked with household he knows that you need to scan the
table many time to get all the house holds, I used a dts to do it.
I tested the dts on 11 records like the article did and that work
great, but once I went to million records each loop is taking me 2 hour
or so....a and I have no idea how how many loops I will have to do.
if anyone out there worked with household queries and used sql, your
imput would help me allot
thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: hyper-sensitive |
last post by:
Hi
Can some body suggest me which approach I should follow to import
millions of records from data base into an excel sheet?
I am working with ver. 2000 of MS-Excel . The requirement is to
dynamically load 65,000 rows to one excel-grid(worksheet) ,then create
and load the other grids(worksheets) till the data has been loaded
fully.
How can I do this using the Filestream object ,in a very short span of
time like some seconds?
Here,...
|
by: Massimo |
last post by:
The iussue:
Sql 2K
I have to keep in the database the data from the last 3 months.
Every day I have to load 2 millions records in the database.
So every day I have to export (in an other database as historical data
container) and delete the 2 millions records inserted 3 month + one day ago.
The main problem is that delete operation take a while...involving
transaction log.
|
by: anchiang |
last post by:
Hi All,
I need to do bulk processing several tables that contain few millions records to generate report.
there is 4 tables say A, B, C, D
A is the transaction table, I need to retrieve data from here where the date is between 1/1/200x to 31/12/200x. but the date is not indexed. about 3million rows to process
Table B is customer details. 1.4 million rows.
Table C is transaction details. 7 millions rows.
Table D is product details....
|
by: Adamthescienceguy |
last post by:
I had a simple question about Access 2007. I'm working with voter databases, and I need a simple way to household the results of my queries by phone number and/or address. Nothing fancy, just a little code that I can use on the fly to only show me the unique records from a query, according to a field or fields that I chose for determining duplication.
Thanks,
Adam
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |