Инструменты пользователя

Инструменты сайта


axapta:временнаятаблица

НадоПеревести toc

Temporary tables

Temporary tables are instantiated and «live» where data are first inserted. The first insert determines whether a table lives on the client or on the server. So it does not matter where, on the server or on the client, a temporary table is declared. Even when you write code like server static <tmptable>::createTable() that instantiates a table, the table still becomes a client temporary table if the first record is inserted from client code.

If a temporary table has a new dataset (setTmpData), the temporary table will afterwards live where the temporary table it's having it's data from are living.

Temporary tables are inserted and fetched remote as ordinary tables (caching, replication, «chunks»).

Temporary tables are created as files in the local file system.

Hints

A temporary table should live on the tier where it is used.

If a temporary table is used on several tiers, the table should live on the tier where the largest number of inserts and updates is performed.

см. Temporary_tables

метод setTmpData() - делает переадресацию в памяти т.е.

aTable.setTmpData(bTable); 

табличные переменные aTable и bTable будут ссылаться на один адрес памяти. Если после выполнения метода settmpdata() будет выполнено обновление, удаление или добавление записей то записи будут соответственным образом изменяться в двух таблицах aTable и bTable.

http://www.axforum.info/forums/showthread.php?s=&threadid=235

axapta/временнаятаблица.txt · Последнее изменение: 2018/04/13 22:43 (внешнее изменение)