Question

My Customer want to create new table everyday, e.g. MyTable<yyyymmdd>, and then my application will read this table and do some cross-check. After done all cross-check, I need to drop this table. Every day will be create and drop table.

Is it good solution? could be database will crash because of this?

please advice me.

  • i already give another solution, which customer just insert the data into one table. After that, I'll delete all records once done. But customer refuse to use my solution.
Était-ce utile?

La solution 2

There is no point in creating and dropping the table with the same columns everyday. If the columns in that table are changing everyday you can go ahead with the approach.

Your database will not crash because of this. Just make sure that services are not accessing the table when it is dropped.

Autres conseils

this is a simple life cycle issue. use interval partitioning. easy to manage, good for performance.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top