mikedaruke
Technical User
I need to run a big SQL statement that looks at a table and returns about 50k rows with 5 columns. The statment runs against tables that are like 7 million rows deep. It takes about 1 hour.
My questions is I created a view, which I am not sure gets me what I want. I want to be able to run the statment at night, then the results stay in a table. This way every night I will update the table, and during the day I am going to have a website that does queries off the table, which is the results of the view. I need this to be fast so i need the results of the view to be there without having to wait 1 hour each time.
Any way to do this?
My questions is I created a view, which I am not sure gets me what I want. I want to be able to run the statment at night, then the results stay in a table. This way every night I will update the table, and during the day I am going to have a website that does queries off the table, which is the results of the view. I need this to be fast so i need the results of the view to be there without having to wait 1 hour each time.
Any way to do this?