Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Florian
@Typ0genius@mastodon.social  ·  activity timestamp 2 weeks ago

Ugh. What a tough decision: supporting cross-device sync via CloudKit requires all primary keys to be UUIDs. My tests showed inserts up to 60% slower and queries around 30% slower with a million rows. But not having the option for sync would suck too.

#iOSDev

  • Copy link
  • Flag this post
  • Block
Amy Worrall
@amyworrall@mastodon.social replied  ·  activity timestamp 2 weeks ago

@Typ0genius Why are queries that much slower? Well indexed UUIDs should be fast to query shouldn't they?

  • Copy link
  • Flag this comment
  • Block
Florian
@Typ0genius@mastodon.social replied  ·  activity timestamp 2 weeks ago

@amyworrall Comparing/inserting strings is much more expensive than numbers.

  • Copy link
  • Flag this comment
  • Block
[kai engelhardt];
@kaiengelhardt@mastodon.social replied  ·  activity timestamp 2 weeks ago

@Typ0genius @amyworrall Are they represented as Strings though? I would have expected an Int128 representation.

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login