Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reuse available Dynamic GUIDs #1493

Merged
merged 4 commits into from
Mar 8, 2019
Merged

Conversation

Mag-nus
Copy link
Member

@Mag-nus Mag-nus commented Mar 5, 2019

On ACE startup, the shard database is queried for available id's in the dynamic guid range.

This helps further reduce (max + 1) id allocation.

It's a bit premature, but, based on current architecture, I don't know if we'll ever need to do a id defragment.

A requirement of this method is that ace_world may only contain guids in the static range.

On ACE startup, the shard database is queried for available id's in the dynamic guid range.

This helps further reduce (max + 1) id allocation.

It's a bit premature, but, based on current architecture, I don't know if we'll ever need to do a id defragment.

A requirement of this method is that ace_world may only contain guids in the static range.
@Mag-nus
Copy link
Member Author

Mag-nus commented Mar 5, 2019

This PR needs some testing.

I also need to add the SQL alter statements to ace_world to restrict guids to the static ranges.

All ids must be in the static range
@gmriggs
Copy link
Collaborator

gmriggs commented Mar 6, 2019

Playtested on mariadb - everything still seemed to be speedy, no noticeable errors reported

@Mag-nus Mag-nus merged commit 0095e2c into ACEmulator:master Mar 8, 2019
@Mag-nus Mag-nus deleted the GuidSequenceGaps branch March 8, 2019 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants