Ovidiu Podariu (Tech) (@ocpodariu) - Deepstash

Ovidiu Podariu (Tech)

@ocpodariu

Alt account of @ocp. I use it to stash ideas about software engineering

212 Followers

2 Following

๐Ÿฅˆ 2 in

+5 more

108 STASHED IDEAS

โ€ข

recently stashed about

64 PUBLISHED IDEAS

โ€ข

stashed 332 times

Terminology
  • Node = An Elasticsearch process. It's recommended to run each node on a separate server.
  • Cluster = Set of one or more nodes.
  • Shard = Part of an index, used for distributing data across the cluster.

2

STASHED IN:

4

๐Ÿ“– Elasticsearch in Action

4 IDEAS

0 Comments

Elasticsearch and Lucene

Elasticsearch is a distributed search and analytics engine, built on top of Lucene. It provides a JSON-based REST API and supports sharding, replication, and cluster management, for high availability.

Lucene is a high-performance search engine library, written in Java. It provides fast and memory efficient text indexing (20-30% of the original text size), and powerful search algorithms:

  • Ranked and faceted searching
  • Text highlighting
  • Autocomplete
  • Suggesters ("Did you mean?")
  • Spell checkers
  • Aggregations

1

STASHED IN:

4

Who is an architect?

According to Wikipedia:

A software architect is a software expert who makes high-level design choices and dictates technical standards, including software coding standards, tools, and platforms.

STASHED IN:

5

slice

slice(stop)

slice(start, stop, [step])

  • Standard indexing relies on slice():ย a[start:stop:step]ย callsย a.__getitem__(slice(start, stop, step)).
  • slice() creates a shallow copy of the selected elements from the original list.
  • Whenever you slice a list, the Python interpreter creates a new list and populates it with references to the elements you selected from the original list. Given that a reference needs 8 bytes on 64-bit systems,ย the overhead of copying references becomes noticeable when working with large lists. For example, slicing 1000 elements allocates almost 8kb worth of references.

STASHED IN:

2

๐Ÿ Python docs & Stack Overflow

3 IDEAS

0 Comments

Returns an infinite iterator that produces evenly spaced values starting with number start.

It's often used in combination with map() to generate consecutive data points, and with zip() to add sequence numbers.

STASHED IN:

2

๐Ÿ Exploring itertools docs

2 IDEAS

0 Comments

โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ

โค๏ธ Brainstash Inc.