{"id":4571,"date":"2014-03-30T13:34:02","date_gmt":"2014-03-30T13:34:02","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/working-with-datasets-in-datamodule-collection-of-common-programming-errors\/"},"modified":"2014-03-30T13:34:02","modified_gmt":"2014-03-30T13:34:02","slug":"working-with-datasets-in-datamodule-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/working-with-datasets-in-datamodule-collection-of-common-programming-errors\/","title":{"rendered":"Working with datasets in Datamodule-Collection of common programming errors"},"content":{"rendered":"<p>I have a DataModule and I want to have many (&gt;50) datasets inside of it. I plan to request data from that datasets via functions and procedures.<\/p>\n<p>The question is, what is the best way to organize datasets in the DataModule?<\/p>\n<p>I see three options:<\/p>\n<ol>\n<li>One design-time component for each dataset.<\/li>\n<li>One common design-time component dataset for all datasets. Text of SQL command and other properties are set dynamically inside a corresponding function or procedure.<\/li>\n<li>No design-time components. Each dataset is created in the run-time inside a corresponding function, then it returns data to this function and gets destroyed.<\/li>\n<\/ol>\n<p>How do you think, which way is the best? Or none of above? Are there any other ways to efficiently organize many datasets inside a DataModule?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a DataModule and I want to have many (&gt;50) datasets inside of it. I plan to request data from that datasets via functions and procedures. The question is, what is the best way to organize datasets in the DataModule? I see three options: One design-time component for each dataset. One common design-time component [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4571","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4571"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4571\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}