# Limit observed tables during Bake

**URL:** <https://discourse.cakephp.org/t/limit-observed-tables-during-bake/2282>\
**Category:** Need Help\
**Created:** [March 23, 2017, 3:28pm UTC](https://discourse.cakephp.org/t/limit-observed-tables-during-bake/2282 "2017-03-23T15:28:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewgstreet](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@andrewgstreet](https://discourse.cakephp.org/u/andrewgstreet)\
**Post date:** [March 23, 2017, 3:28pm UTC](https://discourse.cakephp.org/t/limit-observed-tables-during-bake/2282/1 "2017-03-23T15:28:47Z")

</div>

Hi All,

I have a DB with 489 tables. As such most of the automagic goodness of baking doesn’t work. Even creating one model takes about 5 minutes if I don’t set --no-associations.

For my project, I only need to work with about 30 of those 489 tables. I’m wondering if there is a way to provide the bake functions with a list (array if you will) of tables to inspect when hooking up associations, generating controllers, etc.

Any insight would be much appreciated.

---

<div class="post-metadata">

**Author:** ![raul338](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/raul338/32/69_2.png) [@raul338](https://discourse.cakephp.org/u/raul338)\
**Post date:** [March 23, 2017, 6:33pm UTC](https://discourse.cakephp.org/t/limit-observed-tables-during-bake/2282/2 "2017-03-23T18:33:54Z")

</div>

You can export those 30 tables, with some rows (20… 50? for example) into a tempral database, configure a connection to that database, and use bake with the new connection. Check the bake help
