MySQL Forums
Forum List  »  General

Re: any way to "ignore" a value in an INSERT/UPDATE query?
Posted by: michael cook
Date: July 15, 2013 01:01PM

Rick,

I'll give that a try. Hopefully doing 3 queries won't add significant overhead as the tables are quite large.

As for values being "burned" - I'm not sure I know what you mean by the term - but I haven't seen incorrect values inserted or updated. The PKey is not an AI column though. In fact it's really a unique compound index made up of an unsigned smallint ('y') and a datetime column ('z').

There are two separate tables in question. At this moment in time, one has 89,988,824 rows, where 'y' has roughly 1060 distinct values, and 'z' represents every hour from March 2003 through present

The other table contains 54,368,318 rows, where 'y' has roughly 504 distinct values and 'z' is hourly values from Nov 1999 through present

together, 'y' and 'z' must be unique.

Options: ReplyQuote


Subject
Written By
Posted
Re: any way to "ignore" a value in an INSERT/UPDATE query?
July 15, 2013 01:01PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.