Registers
Information registers, the last-values slice, register kinds, recorder subordination and register totals.
9 questions
JuniorTheoryVery commonWhat is an information register for, and what does it consist of?
What is an information register for, and what does it consist of?
It stores values by a combination of dimensions, such as an item's price by price type, and nothing in it is summed. It has dimensions, the key of a record, resources, the stored values, and attributes; a periodic one also has Период.
Common mistakes
- ✗Keeping summed data such as stock in an information register: sums belong in an accumulation register
- ✗Making the stored value a dimension: two records then differ by value instead of one replacing the other
Follow-up questions
- →What happens when you write a record with the same dimensions as an existing one?
- →When does an information register need to be periodic?
JuniorTheoryVery commonWhich kinds of registers does 1C have, and how do they differ?
Which kinds of registers does 1C have, and how do they differ?
There are four. An information register keeps values by dimensions, often by date, such as prices; an accumulation register sums quantities and amounts; an accounting register keeps entries by accounts; a calculation register serves payroll.
Common mistakes
- ✗Keeping prices in an accumulation register: a price is not summed, so it belongs in an information register
- ✗Calling the records of an accumulation register «проводки»: entries belong to accounting registers, an accumulation register has movements
Follow-up questions
- →Why are stock balances kept in an accumulation register rather than an information register?
- →Which other metadata object does an accounting register need in order to work?
MiddleTheoryVery commonHow does a balance accumulation register differ from a turnover one?
How does a balance accumulation register differ from a turnover one?
A balance register keeps receipts and expenses, Приход and Расход, so it answers how much is left on a date: it has Остатки, Обороты and ОстаткиИОбороты. A turnover register has no movement kind and only Обороты, such as sales per period.
Common mistakes
- ✗Using a balance register for sales: sales are not a balance, so a turnover register fits
- ✗Looking for
Остаткиin a turnover register: it has onlyОбороты
Follow-up questions
- →Why does a turnover register need no movement kind?
- →Which kind of register fits a sales plan per manager and month?
MiddleTheoryVery commonHow does a periodic information register differ from a non-periodic one?
How does a periodic information register differ from a non-periodic one?
A periodic register adds Период to the key, so it keeps a value's history: each record holds from its date on. It has the virtual tables СрезПоследних and СрезПервых. A non-periodic one keeps one current value per set of dimensions.
Common mistakes
- ✗Storing a price that changes over time in a non-periodic register: the old value is lost on each change
- ✗Looking for
СрезПоследнихon a non-periodic register: slices exist only for periodic ones
Follow-up questions
- →Which periodicities can a periodic information register have?
- →What does the periodicity «по позиции регистратора» give a subordinate register?
JuniorTheoryCommonWhich register suits a currency rate for every date?
Which register suits a currency rate for every date?
A periodic information register: it keeps a value per date and gives a slice
Common mistakes
- ✗Keeping a rate in an accumulation register: its resources are added up, while a rate is a value on a date
- ✗Choosing a non-periodic information register for a history: without periodicity a key has one record, and past rates are overwritten
Follow-up questions
- →How do you get the currency rate on a document's date in a query?
- →What becomes a dimension and what a resource in such a register?
JuniorTheoryCommonWhat pen price will the last-values slice return for 15.11?
What pen price will the last-values slice return for 15.11?
18
Open full question →Common mistakes
- ✗Taking the very last record of the register: the slice takes the latest record not later than its date
- ✗Adding prices up like the movements of an accumulation register: an information register keeps a value per date, not a sum
Follow-up questions
- →What does the slice return for the pen on 15.09?
- →How does the last-values slice differ from the first-values slice?
MiddleTheoryCommonWhat does subordinating an information register to a recorder change?
What does subordinating an information register to a recorder change?
Records then belong to a document: it writes them at posting through Движения, each keeps it in Регистратор, and the record set is read and written per recorder. An independent register is instead written directly by any code or user.
Common mistakes
- ✗Writing a subordinate register's record outside its document: the record set belongs to a recorder
- ✗Subordinating a register that users must edit by hand: an independent register suits that
Follow-up questions
- →Why are prices often set by a document that writes a subordinate register?
- →How does subordination change the key of a periodic register's record?
MiddleTheoryCommonWhat are the totals of an accumulation register, and what are they for?
What are the totals of an accumulation register, and what are they for?
Totals are pre-computed sums the platform keeps beside the movements: for a balance register, by month plus current ones. A balance on a date is then the nearest stored totals plus or minus the movements in between, not a sum of all movements ever.
Common mistakes
- ✗Thinking a balance is always a sum of all movements: the platform starts from stored totals
- ✗Switching totals off for a large load and forgetting to switch them back on: balance queries then slow down sharply
Follow-up questions
- →Why switch totals off with
УстановитьИспользованиеИтогов(Ложь)during a large data load? - →What is the period of calculated totals, and why move it forward?
SeniorTheoryOccasionalHow does splitting an accumulation register's totals affect parallel posting?
How does splitting an accumulation register's totals affect parallel posting?
With «Разрешить разделение итогов» on, the totals table gets a separator field, so parallel transactions update different totals rows instead of waiting on each other. Balance reads sum across separators; managed locks on the same goods still queue.
Common mistakes
- ✗Expecting split totals to replace the lock in stock control: the logical conflict on the same goods remains
- ✗Turning splitting on for a register that is read far more than written: every read pays for summing the separators
Follow-up questions
- →Why does splitting totals help most for a register many users write at the same time?
- →How do you switch splitting on for an existing register from code?