# Perspective Workstation architecture question

**URL:** <https://forum.inductiveautomation.com/t/perspective-workstation-architecture-question/59480>\
**Category:** General Discussion\
**Tags:** perspective, ignition81\
**Created:** [May 11, 2022, 9:15pm UTC](https://forum.inductiveautomation.com/t/perspective-workstation-architecture-question/59480 "2022-05-11T21:15:58Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 13, 2022, 8:46pm UTC](https://forum.inductiveautomation.com/t/perspective-workstation-architecture-question/59480/25 "2022-05-13T20:46:01Z")

</div>

> [@lrose](#):
>
> Yet there is no way that I am aware of to set a default DB for a perspective session, and since “all” scripts run in the Gateway I would expect that Gateway Scope is always required.

Perspective is running inside the context of a particular project (by definition), so on the backend, we pass the project's default database in to the running script's context automatically. The individual scripting function implementations "know" to look for this context and extract it, so both things are true:

1. All Perspective scripts run on the gateway
2. Perspective scripts can assume the default database.

See [this thread](https://forum.inductiveautomation.com/t/bug-5802-async-tag-event-script-loses-reference-paths/57768) if you're interested in how that mechanism actually works.

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-workstation-architecture-question/59480)._
