marcmunro / pgbitmap Goto Github PK
View Code? Open in Web Editor NEWbitmap extension for postgres
License: Other
bitmap extension for postgres
License: Other
I have a table with an array of integers and I want to run a comparison to extract any rows that include a subset of integers.
SELECT bitmap_intersection(to_bitmap('{1, 2, 3}'), to_bitmap(ids)) FROM table;
=> Query 1 ERROR: ERROR: invalid memory alloc request size 18446744073709551576
Just casting the ids to_bitmap is fine so I'm guessing it's something in the intersection function. What I'm actually looking to get out, however, is a boolean, the same as &&
provides me. I don't care what the intersection is so presumably there's some sort of performance improvement that could be achieved by providing that functionality and not returning the actual intersection?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.