~openerp-community/openobject-doc/ksa-openobject-doc-6.0

« back to all changes in this revision

Viewing changes to i18n/ru/source/technical_guide/chricar_view_id.rst

  • Committer: Don Kirkby
  • Date: 2011-02-21 20:46:11 UTC
  • mfrom: (433.1.53 openobject-doc)
  • Revision ID: donkirkby+launpd@gmail.com-20110221204611-1ykt6dmg4k3gh5dh
[MERGE] revisions 477 to 486 from the 5.0 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
.. i18n: .. module:: chricar_view_id
 
3
.. i18n:     :synopsis: ChriCar unique View ID 
 
4
.. i18n:     :noindex:
 
5
.. i18n: .. 
 
6
..
 
7
 
 
8
.. module:: chricar_view_id
 
9
    :synopsis: ChriCar unique View ID 
 
10
    :noindex:
 
11
.. 
 
12
 
 
13
.. i18n: .. raw:: html
 
14
.. i18n: 
 
15
.. i18n:       <br />
 
16
.. i18n:     <link rel="stylesheet" href="../_static/hide_objects_in_sidebar.css" type="text/css" />
 
17
..
 
18
 
 
19
.. raw:: html
 
20
 
 
21
      <br />
 
22
    <link rel="stylesheet" href="../_static/hide_objects_in_sidebar.css" type="text/css" />
 
23
 
 
24
.. i18n: .. tip:: This module is part of the OpenERP software, the leading Open Source 
 
25
.. i18n:   enterprise management system. If you want to discover OpenERP, check our 
 
26
.. i18n:   `screencasts <http://openerp.tv>`_ or download 
 
27
.. i18n:   `OpenERP <http://openerp.com>`_ directly.
 
28
..
 
29
 
 
30
.. tip:: This module is part of the OpenERP software, the leading Open Source 
 
31
  enterprise management system. If you want to discover OpenERP, check our 
 
32
  `screencasts <http://openerp.tv>`_ or download 
 
33
  `OpenERP <http://openerp.com>`_ directly.
 
34
 
 
35
.. i18n: .. raw:: html
 
36
.. i18n: 
 
37
.. i18n:     <div class="js-kit-rating" title="" permalink="" standalone="yes" path="/chricar_view_id"></div>
 
38
.. i18n:     <script src="http://js-kit.com/ratings.js"></script>
 
39
..
 
40
 
 
41
.. raw:: html
 
42
 
 
43
    <div class="js-kit-rating" title="" permalink="" standalone="yes" path="/chricar_view_id"></div>
 
44
    <script src="http://js-kit.com/ratings.js"></script>
 
45
 
 
46
.. i18n: ChriCar unique View ID (*chricar_view_id*)
 
47
.. i18n: ==========================================
 
48
.. i18n: :Module: chricar_view_id
 
49
.. i18n: :Name: ChriCar unique View ID
 
50
.. i18n: :Version: 5.0.0.2
 
51
.. i18n: :Author: Network Gulf IT - India
 
52
.. i18n: :Directory: chricar_view_id
 
53
.. i18n: :Web: http://www.chricar.at/ChriCar/index.html
 
54
.. i18n: :Official module: no
 
55
.. i18n: :Quality certified: no
 
56
..
 
57
 
 
58
ChriCar unique View ID (*chricar_view_id*)
 
59
==========================================
 
60
:Module: chricar_view_id
 
61
:Name: ChriCar unique View ID
 
62
:Version: 5.0.0.2
 
63
:Author: Network Gulf IT - India
 
64
:Directory: chricar_view_id
 
65
:Web: http://www.chricar.at/ChriCar/index.html
 
66
:Official module: no
 
67
:Quality certified: no
 
68
 
 
69
.. i18n: Description
 
70
.. i18n: -----------
 
71
..
 
72
 
 
73
Description
 
74
-----------
 
75
 
 
76
.. i18n: ::
 
77
.. i18n: 
 
78
.. i18n:   This module is funded by
 
79
.. i18n:   ChriCar Beteiligungs- und Beratungs- GmbH
 
80
.. i18n:   http://www.chricar.at/ChriCar/index.html
 
81
.. i18n:   
 
82
.. i18n:   Developed by
 
83
.. i18n:   Network Gulf IT - India
 
84
.. i18n:   http://www.networkgulf.com/
 
85
.. i18n:   
 
86
.. i18n:   usage: get_id('your_view_name',param1,param2,param3,param4)
 
87
.. i18n:   this function will always return the SAME unique id for a 
 
88
.. i18n:   certain combination of parameters for a view.
 
89
.. i18n:   
 
90
.. i18n:   Hint 1: you do not need this function if the unique id can easily be 
 
91
.. i18n:   calculated during the grouping. Example
 
92
.. i18n:   - easy: group by product_id
 
93
.. i18n:   - more complex: group by account_id, period_id
 
94
.. i18n:   - very complex: group by account_id, period_id, currency_id
 
95
.. i18n:   
 
96
.. i18n:   Hint 2: for large tables (100000 rec)  
 
97
.. i18n:   performance gain of factor 10x and more
 
98
.. i18n:   split the grouping operation and the get_id into 2 views
 
99
.. i18n:   
 
100
.. i18n:   slow:
 
101
.. i18n:   select get_id(tablename,param1,param2,...), param1, param2, ... sum(field1), ...
 
102
.. i18n:   from
 
103
.. i18n:   group by get_id(tablename,param1,param2,...) ,param1,param2,...
 
104
.. i18n:   
 
105
.. i18n:   fast:
 
106
.. i18n:   1) view1: 
 
107
.. i18n:   select ....
 
108
.. i18n:   from
 
109
.. i18n:   group by param1,param2,...
 
110
.. i18n:   2) view 2
 
111
.. i18n:   select get_id('view1',param1,param2,...),* from view1;
 
112
.. i18n:   (no group by here)
 
113
..
 
114
 
 
115
::
 
116
 
 
117
  This module is funded by
 
118
  ChriCar Beteiligungs- und Beratungs- GmbH
 
119
  http://www.chricar.at/ChriCar/index.html
 
120
  
 
121
  Developed by
 
122
  Network Gulf IT - India
 
123
  http://www.networkgulf.com/
 
124
  
 
125
  usage: get_id('your_view_name',param1,param2,param3,param4)
 
126
  this function will always return the SAME unique id for a 
 
127
  certain combination of parameters for a view.
 
128
  
 
129
  Hint 1: you do not need this function if the unique id can easily be 
 
130
  calculated during the grouping. Example
 
131
  - easy: group by product_id
 
132
  - more complex: group by account_id, period_id
 
133
  - very complex: group by account_id, period_id, currency_id
 
134
  
 
135
  Hint 2: for large tables (100000 rec)  
 
136
  performance gain of factor 10x and more
 
137
  split the grouping operation and the get_id into 2 views
 
138
  
 
139
  slow:
 
140
  select get_id(tablename,param1,param2,...), param1, param2, ... sum(field1), ...
 
141
  from
 
142
  group by get_id(tablename,param1,param2,...) ,param1,param2,...
 
143
  
 
144
  fast:
 
145
  1) view1: 
 
146
  select ....
 
147
  from
 
148
  group by param1,param2,...
 
149
  2) view 2
 
150
  select get_id('view1',param1,param2,...),* from view1;
 
151
  (no group by here)
 
152
 
 
153
.. i18n: Download links
 
154
.. i18n: --------------
 
155
..
 
156
 
 
157
Download links
 
158
--------------
 
159
 
 
160
.. i18n: You can download this module as a zip file in the following version:
 
161
..
 
162
 
 
163
You can download this module as a zip file in the following version:
 
164
 
 
165
.. i18n: (No download links available)
 
166
..
 
167
 
 
168
(No download links available)
 
169
 
 
170
.. i18n: Dependencies
 
171
.. i18n: ------------
 
172
..
 
173
 
 
174
Dependencies
 
175
------------
 
176
 
 
177
.. i18n:  * :mod:`base`
 
178
..
 
179
 
 
180
 * :mod:`base`
 
181
 
 
182
.. i18n: Reports
 
183
.. i18n: -------
 
184
..
 
185
 
 
186
Reports
 
187
-------
 
188
 
 
189
.. i18n: None
 
190
..
 
191
 
 
192
None
 
193
 
 
194
.. i18n: Menus
 
195
.. i18n: -------
 
196
..
 
197
 
 
198
Menus
 
199
-------
 
200
 
 
201
.. i18n: None
 
202
..
 
203
 
 
204
None
 
205
 
 
206
.. i18n: Views
 
207
.. i18n: -----
 
208
..
 
209
 
 
210
Views
 
211
-----
 
212
 
 
213
.. i18n: None
 
214
..
 
215
 
 
216
None
 
217
 
 
218
.. i18n: Objects
 
219
.. i18n: -------
 
220
..
 
221
 
 
222
Objects
 
223
-------
 
224
 
 
225
.. i18n: Object: chricar_view_id (chricar_view_id)
 
226
.. i18n: #########################################
 
227
..
 
228
 
 
229
Object: chricar_view_id (chricar_view_id)
 
230
#########################################
 
231
 
 
232
.. i18n: :name: Name, char
 
233
..
 
234
 
 
235
:name: Name, char