sql - Is there a more efficient way of selecting data from a dynamic table than using a temp table? -
can be a table near me, including different types and fields of many ways, and I have a table definition table which I what data tells which is the area I need to choose things from the table, so currently I have the table definition in the table, and a dynamic select statement by choosing a temporary table Builds Not, then act on it.
The actual amount I am selecting is very large, more than 5 million records. I'm wondering if a floating table is actually the best way to do this.
What are the other more efficient options I need to do?
If your data is static, report - cache is the most popular query result, preferably on the application server. Or multi-dimensional modeling (cubes) are actually "more efficient choices" to do this.
temporary tables, table variables, table data type ... in any case you will be using your tempdb, and if you want to optimize your queries, customize Tempdb storage (after checking) You can also create indexing for your floating tables.
Comments
Post a Comment