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

add support for deduplication on varstring column types #33

Open
bovine opened this issue Oct 17, 2012 · 4 comments
Open

add support for deduplication on varstring column types #33

bovine opened this issue Oct 17, 2012 · 4 comments
Assignees

Comments

@bovine
Copy link
Member

bovine commented Oct 17, 2012

Boost supports a "flyweight" template that would allow easily implementation of deduplication of string values, which could provide a significant memory size reduction if values tend to be repeated a lot. (Basically allowing your tables to be denormalized but without the full storage overhead.)

http://www.boost.org/doc/libs/1_51_0/libs/flyweight/doc/tutorial/basics.html

The column could be defined as something like:
varstring filename notnull 1 default "" dedupe 1

@ghost ghost assigned bovine Oct 17, 2012
@resuna
Copy link
Member

resuna commented Oct 18, 2012

Speedtables is not in C++, so this would be kind of tricky.

@bovine
Copy link
Member Author

bovine commented Oct 18, 2012

My new "cpp" branch of speedtables is C++ and uses boost :)

@resuna
Copy link
Member

resuna commented Oct 18, 2012

That sounds... exciting? Adventurous? :)

@apnadkarni
Copy link

Please please please keep C as an option if you move to C++. Deployment is much simpler, at least for binary distributions on Windows platforms.

As an aside, when working from Tcl, deduplication should be easy enough for the application by defining field as tclobj

@bovine bovine removed this from the cpp milestone Jul 8, 2016
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

No branches or pull requests

3 participants