hilo Questions

5

Solved

If I start using a HiLo generator to assign ID's for a table, and then decide to increase or decrease the capacity (i.e. the maximum 'lo' value), will this cause collisions with the already-assigne...
Patrinapatriot asked 21/6, 2010 at 11:16

0

This article (https://vladmihalcea.com/hibernate-hidden-gem-the-pooled-lo-optimizer/) gives a good explanation on the differences for the hilo, pooled and pooled-lo optimizers for sequence generato...
Bactericide asked 29/4, 2020 at 15:12

6

Solved

We all know the default behaviour of Hibernate when using @SequenceGenerator - it increases real database sequence by one, multiple this value by 50 (default allocationSize value) - and then uses t...
Recognize asked 5/10, 2012 at 11:55

5

Solved

What's the Hi/Lo algorithm? I've found this in the NHibernate documentation (it's one method to generate unique keys, section 5.1.4.2), but I haven't found a good explanation of how it works. I k...
Armor asked 11/11, 2008 at 20:53

5

Has anyone implemented a HiLO key generator for the Entity Framework. Read more about HiLo here: I recommend that you read http://fabiomaulo.blogspot.com/2009/02/nh210-generators-behavior-explaine...
Chaeta asked 2/7, 2010 at 8:9

5

Solved

I work with a database that depends heavily on identity columns. However as we have now moved all applications over to NHibernate I wanted to look into using HiLo as seems to be recommended with NH...
Fabre asked 7/9, 2009 at 16:25

1

Solved

In my current design, I have HiLo setup to have a MaxLo of 1000. Is this being excessive? Could I reduce this number to something like 100 and still be ok? public class HiLoConvention : IIdConvent...
Serrate asked 9/5, 2011 at 14:24

2

I've seen some docs by Fabio Maulo that shows the following params: <id name="Id" type="Int64" column="cat_id"> <generator class="hilo"> <param name="table">hi_value</param&...
Gametocyte asked 15/10, 2010 at 13:54

1

Solved

Is it possible to switch from HiLo to GUID.comb? As far as I can tell, the latter combines the advantage of HiLo, namely managing Ids client-side instead of needing a call to the DB for getting a n...
Astor asked 1/2, 2011 at 14:3

1

Solved

I'm about to switch some of my entities from identity to hilo id-generator. I'm don't have a clue how the tables holding the next-high values should be designed. should I use a single table for ...
Devilment asked 3/2, 2010 at 14:9

2

Solved

I'm currently using the hilo id generator for my classes but have just been using the minimal of settings eg <class name="ClassA"> <id name="Id" column="id" unsaved-value="0"> <generat...
Beckiebeckley asked 28/8, 2009 at 8:42

1

Solved

I've genereated a schema for my (SQL 2005) db using SchemaExport, and it's created a table CREATE TABLE [dbo].[hibernate_unique_key]( [next_hi] [int] NULL ) ON [PRIMARY] When I try to add an en...
Remittent asked 30/6, 2009 at 21:13
1

© 2022 - 2024 — McMap. All rights reserved.