WordPress database error: [Disk full (/tmp/#sql-temptable-1-261ffa-712.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")]SHOW FULL COLUMNS FROM `markjacobsen_options`
Ever have a DB2 query that all of a sudden went from performing just fine to being dog slow? If so, there may be an issue with the stats on one or more of the tables being used in the query. To check, run the SQL below replacing XX and TABLE_NM with your appropriate schema and table in 2 places…<\/p>\n
-- What DB2 thinks the table count is\r\nSELECT 'Stats' AS TYPE_X,\r\n CARD AS COUNT_NB,\r\n STATS_TIME AS UPDATED_TS\r\nFROM SYSCAT.TABLES \r\nWHERE TABSCHEMA = 'XX' \r\n AND TABNAME ='TABLE_NM'\r\n UNION\r\n-- Actual table count\r\nSELECT 'Actual' AS TYPE_X,\r\n COUNT(*) AS COUNT_NB,\r\n CURRENT_TIMESTAMP AS UPDATED_TS\r\nFROM XX.TABLE_NM\r\nFOR READ ONLY WITH UR\r\n<\/code><\/pre>\n… if the record counts are way off, have your DBA do a runstats on the table in question followed by a rebind of any stored procs that use the table.<\/p>\nPlease remember to subscribe to the newsletter<\/a> to stay up to date!<\/i>
\n
\nYou or someone you know looking to buy or sell?<\/i>\n<\/a>
\nDisclaimer: Thoughts and opinions are my own, and do not reflect the views of any employer, family member, friend, or anyone else. Some links may be affiliate links, but I don't link to anything I don't use myself. You would think this should be self evident these days, but apparently not...<\/small><\/i>","protected":false},"excerpt":{"rendered":"Ever have a DB2 query that all of a sudden went from performing just fine to being dog slow? If so, there may be an issue with the stats on one or more of the tables being used in the query. To check, run the SQL below replacing XX and TABLE_NM with your appropriate schema … Continue reading DB2 Stats vs Actual<\/span>