Re: complex locking and sequence generation




Maxim Demenko wrote:
[...]
Another idea - if only gapless representation of data is required - one
can use inserts in a table with reqular sequences ( with all the
benefits of concurrent processing ) and create a view on this table with
row_number() over (order by sequence_generated_values) analytical
function. That is an easy way to eliminate the gaps.


This would eliminate 'legitimate' gaps (if such can occur at all), so
it's the same as telling the auditors "there are no gaps and even if
there are you won't see them anyway".

There is no way to produce gap free sequences without making your
database one-threaded/serial for the application that requires such
sequences.

.



Relevant Pages

  • Re: Could Behe be schizophrenic?
    ... exponentially expanding neutral gaps are demonstrable in real ... subspace of English words in the space of letter sequences. ... >> of a nylonase via a frame shift ...
    (talk.origins)
  • Re: Real scientist (Einstein) versus fake scientists (neo-Darwinists)
    ... Click on Matrix Fig. 1 to download the sequences. ... Molecular phylogeny and evolution of primate mitochondrial DNA. ... >>the legend says are gaps. ... > breaking the DNA up into short fragments, ...
    (talk.origins)
  • Re: [PHP] Pragmatically changing a "Record Number"
    ... So to say it another way, I have a table that has 900 records in it, I've added 3 records, but then deleted 2 of those which puts the actual record count at 901 but my auto increment field starts at 904 on the next insert. ... Is there away with PHP that I can pragmatically change that value to the total records in the database more so then a representation of the actual record number? ... I've seen many people who wished to "fix" sequences like this before, usually because they believe there is something "wrong" with there being gaps in there. ...
    (php.general)
  • Re: Combsort: shrink factor for guaranteed O(n log n) worst case time?
    ... a pattern as small as 324 elements long to defeat the previously ... The next gaps, being even, don't change anything. ... Though, there can be other kinds of killer sequences, of ... Batcher's odd-even mergesort is, as combsort, a sorting network. ...
    (comp.theory)
  • Re: Real scientist (Einstein) versus fake scientists (neo-Darwinists)
    ... > David Ewan Kahana wrote: ... >>>the legend says are gaps. ... >>breaking the DNA up into short fragments, ... you look for long overlapping sequences in different ...
    (talk.origins)