Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

use of autonumber?

Hi,

can anyone explain me why we go for autonumber?

if u can, give me an example?

6 Replies
Not applicable
Author

Check the reference manual:

Returns a unique integer value for each distinct evaluated value of expression encountered during the script

execution. This function can be used e.g. for creating a compact memory representation of a complex key.

In order to create multiple counter instances if the autonumber function is used on different keys within the

script, an optional parameter AutoID can be used for naming each counter.

Also search for autonumber in the forum, there are a lot of questions about autonumber.

hic
Former Employee
Former Employee

Often you need to create composite keys between tables, i.e. keys that are concatenations of several other keys. These composite keys are often 50-100 characters long (or more) and take up a fair amount of memory. But they are usually not displayed.

So, if you want to save some memory space, you should use the Autonumber() function on the composite keys. It replaces long strings with a short number while maintaining all information.

HIC

Not applicable
Author

Thanks for ur explanation

Not applicable
Author

Thanks for ur explanation

Not applicable
Author

thanks for ur explaination

sibideepak
Creator II
Creator II

Is this the only reason to use autonumber ?

But I thought it will link those tables faster and getting data from other tables will be faster .. Am I right or wrong ?

Just want to know, is there any other side for autonumber.