Build a database
Last updated
Last updated
User permissions: Administration > Databases and Sync
You can build a database from two locations in Phocas: in Designer and on the Databases page. The Databases page is suitable when you need to build locked databases, which you do not have permission to open in Designer.
In both locations, you have the option to build the database now or schedule a build to occur later at regular intervals. The following schedule frequency options are available:
Based on Sync: After sync of any source used in this design or after sync of all selected sources. The latter option allows you to select specific sync sources.
Based on a specified interval: Hourly, daily (specify timezone and time), weekly (specify timezone, day of week and time), or monthly (specify timezone, first or last day and time).
Open the database in Designer and click the Build tab.
Then select the applicable build method:
Build now: Click Build. As shown in the image above, a progress bar displays the status of the build, which turns green when the build is complete, and the Logs section underneath displays the details of the build. Click Open to exit Designer and view your database in Phocas.
Schedule a build: Click Schedule, select the build frequency and configure the settings as required, then click Save. The Schedule button turns orange to indicate a schedule has been set.
In the Phocas menu, click Administration > Databases, select the database(s) you want to build, then select the applicable build method:
Build now: Click Build. The Status column displays the status of the build, which says Available (in green) when the build is complete.
Schedule a build: Click More > Schedule, select the build frequency and configure the settings as required, then click Save. The Schedule column displays the schedule frequency.
You can sleep database builds during specified hours, such as at night or the weekend. Accessing the database for analysis purposes during sleep times is unaffected - users can analyze the data based on the last available build.
In the image below, despite the Hourly frequency, the database will not build between 8pm and 6am the following day.
There might be a situation where you need to cancel a build, for example, if you change your mind about the design after the build has started, you realize you made a mistake, or if the build seems to be hanging.
Open the database in Designer, then on the Build tab, click Cancel. You get a message advising you that the build is being canceled. It might take a while to complete the cancellation process. When the build is canceled, the status bar turns red and displays the progress stage the build was at when it was canceled.
To receive an email alert if a build fails, go to your personal settings and select Build failures under Email notifications.
Next step in the design a database process: Give users access to the database