What is table flattening? Can someone please explain it by an example.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2016 12:56 AM
I went through the Wiki Article but didn't get the whole idea of Table Flattening.
- Labels:
-
Instance Configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2016 01:26 AM
Hi Chandresh,
In releases before Dublin, we had physically on database side a table for task, incident, change_request, etc (one physical table for each extension of task). Starting with Dublin we introduced task flattening. Task flattening means we have now physically only one table, task, and all its extensions were incorporated in this table. So on database side we only have now task table, but on instance side we logically have each extension of task as a table defined in Dictionary.
The advantage of task table flattening is that we no longer need to run expensive JOINs on database side (for example getting incidents means we need to do a JOIN between incident table and task table before task flattening, after task flattening we only do a simple query on task table). From this point of view, there is a improvement especially on read operations (SELECTs). On the other hand having a much larger table can cause a bit of slowness when the table is altered (adding a new column on logical incident table for example will cause entire task table to be altered on database side), therefore any update sets or any column modification on task (adding/deleting/changing) should be done usually outside office hours or in low traffic periods.
Hope this helps, if you need more information let me know.
Regards,
Sergiu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2023 11:56 PM
we have restored database backup in our sever for generate additional reports, but in that
task , incident, and change_request tables are missing. no idea how to find details regarding this.
please provide the solution on this.